On Tue, 2003-10-21 at 05:27, Majorinc, Kazimir wrote:
> How can I replace f(x1,...,x10) with side effects, i.e. one that changes
> x1,...,x10 (not structures!) without significant size increase of the
> source in Unicon? I know I can do
>
> every x1|x2|...|x10:=f(x1,...,x10)
>
> but it requires rather complicated f and for some (not all) cases slowdown
> is significant.
> Is there a better way?
You can use a co-expression to help keep f() from being *too*
complicated:
cf := create f(x1,...,x10)
every x1|x2|...|x10 := @cf
procedure f(x1,...,x10)
# changes to parameters ("side effects")
suspend x1|x2|...|x10 # order must match external refs!!
end
[This is 'scary' code - why not use a structure instead of
simple variables?]
--
Steve Wampler -- [EMAIL PROTECTED]
Quantum materiae materietur marmota monax si marmota
monax materiam possit materiari?
-------------------------------------------------------
This SF.net email is sponsored by OSDN developer relations
Here's your chance to show off your extensive product knowledge
We want to know what you know. Tell us and you have a chance to win $100
http://www.zoomerang.com/survey.zgi?HRPT1X3RYQNC5V4MLNSV3E54
_______________________________________________
Unicon-group mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/unicon-group