deep problems (Monticello & class methods)
Bert Freudenberg
bert at impara.de
Tue Aug 1 19:36:37 UTC 2006
Am 01.08.2006 um 20:54 schrieb Damien Cassou:
> nicolas cellier wrote:
>> poolDicionaries would better be named sharedVariableDIctionary or
>> sharedPool.
>> It enables your code to have Shared Global Variables, some kind of
>> global variables (like Smalltalk) that are accessible only to
>> restricted classes that declared it.
>> You get a perfect example with TextConstants. You can use text
>> constants like CR as a global variable when you declare it as
>> poolDictionary.
>
> Thank you for this explanation. Another question: where are those
> shared variables declared ? For example, where is TextConstants ?
> Is it just in the image as this, or declared in a class ?
They used to be simply dictionaries defined in some class. This did
not scale well, so most have been converted to SharedPool subclasses.
- Bert -
More information about the Squeak-dev
mailing list
|