Next: , Previous: , Up: Base classes   [Index]


1.70 DynamicVariable

Defined in namespace Smalltalk
Superclass: Object
Category: Language-Utilities

I am a variable that is visible only in the stackframes outgoing from this one. Do not use DynamicVariable directly, instead create a subclass for each variable you want to use.

You can override the #value class method, and call #valueIfAbsent: from there if you want the default value to be something else than nil.