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 ?


Yes, where it is evaluated in a particular order and ..
No, return_data_value simply returns a "string" as a parameter
to the rest of the function call.

John E. Davis wrote:
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


--
Ben Duncan   - VersAccounting Software LLC 336 Elton Road  Jackson MS, 39212
"Never attribute to malice, that which can be adequately explained by stupidity"
       - Hanlon's Razor


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


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