[squeak-dev] Adding access to outer scopes to DynamicVariable
marcel.taeumel at hpi.de
Tue Apr 23 06:04:12 UTC 2019
I want to implement a dynamic lookup mechanism using dictionaries that are bound via a dynamic variable. Due to subclassing DynamicVariable using a proper name, such outer-scope access will be modular and maintainable in this scenario. I think that one would not consider this as "regular application code" but rather "meta-stuff in a framework". :-)
would it make sense to add those delimited dynamic variables to trunk?
Am 21.04.2019 22:48:18 schrieb Jakob Reschke <forums.jakob at resfarm.de>:
I'm curious about the requirement for this. Is it for debugging/inspection purposes? Because I think regular application code should not try to access outer scope values of a dynamic variable. Much like it should not access any arguments of method contexts further up the call stack.
Am Do., 18. Apr. 2019 um 14:42 Uhr schrieb Marcel Taeumel <marcel.taeumel at hpi.de [mailto:marcel.taeumel at hpi.de]>:
Please find attached the addition of outer-scope access to DynamicVariable. Any thoughts on performance and programming interface?
I would like to add it to trunk in the next week. :-)
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the Squeak-dev