slang-users mailing list

[2005 Date Index] [2005 Thread Index] [Other years]
[Thread Prev] [Thread Next]      [Date Prev] [Date Next]

Re: [slang-users] Can S-Lang do this ?


Ben Duncan <ben@xxxxxxxxxxxxxxxxxx> wrote:
>input_rtn ( row, col, rs, cs, "A", return_data_value (1, 12 ), Refsh ) ;
>
>Where in the ABOVE "input_rtn", S-lang executes return_value and pushes that on
>to the stack AFTER having pushed Refsh and before the rest and then calling
>  "input_rtn".

Are you asking that the parameters in the parameter list be evaluated
in a particular order?  Does `return_data_value` have side-effects
where Refsh, row, etc are modified?  If so, then you may need to make
the function call like:

   row1 = row;
   col1 = col;
     .
     .
   Refsh1 = Refsh;
   val = return_data_value (1, 12);
   input_rtn (row1, col1, ..., val, Refsh1);

Thanks,
--John

_______________________________________________
To unsubscribe, visit http://jedsoft.org/slang/mailinglists.html


[2005 date index] [2005 thread index]
[Thread Prev] [Thread Next]      [Date Prev] [Date Next]