Nesting DynamicVariables
Keith Hodges
keith_hodges at yahoo.co.uk
Sat Oct 27 07:54:35 UTC 2007
I have a list of DyamicVariables that I would like to set at the same time.
If there were two in the list the code would look like so.
state: state during: aBlock
DynamicVar1
use: (DynamicVar newValueFor: state)
during: [ DynamicVar2
use: (DynamicVar newValueFor: state)
during: aBlock
]
Now if there were any number of this things in an OrderedCollection how
would I efficiently or otherwise evaluate this code nested n times deep.
thanks in advance
Keith
More information about the Squeak-dev
mailing list
|