There is no limit in the number of class variables nor the number of
pool variables, not the number of globals in a namspace, they all
behave like a Dictionary...
The limit is on the number of literals you can embed in a method, and
each shared variable (Gloabls, class varaibles and pool variables)
consumes one slot.
Practically you'll just need to split your initialization into several chunks

MyPool>>initialize
  self initializeThis; initializeThat; initializeTheRest.

Nicolas

2010/7/27 Gary Chambers <[email protected]>:
> Hi Bill,
>
> not sure of the limit, if there is one.
> See BalloonEngineConstants for an example (that has lots too!).
>
> Regards, Gary
>
> ----- Original Message ----- From: "Schwab,Wilhelm K"
> <[email protected]>
> To: <[email protected]>
> Sent: Tuesday, July 27, 2010 2:56 AM
> Subject: Re: [Pharo-project] Pool dictionaries
>
>
>> Gary,
>>
>> I found SharedPool, but it was not clear to me how it was supposed to
>> work.  By initializers, do you mean a class-side #initialize that sets the
>> values of the class variables?  How many class variables can a class have?
>> There are quite a few constants in/for the offending gizmo  =:0  I could
>> create multiple pools, which might make things more readable, but the real
>> goal is to just make it work.
>>
>> Thanks,
>>
>> Bill
>>
>>
>>
>> ________________________________________
>> From: [email protected]
>> [[email protected]] On Behalf Of Gary Chambers
>> [[email protected]]
>> Sent: Monday, July 26, 2010 2:20 PM
>> To: [email protected]
>> Subject: Re: [Pharo-project] Pool dictionaries
>>
>> See SharedPool and subclasses...
>>
>> No longer dictionaries as such, explained in the class comment.
>>
>> Subclass SharedPool with the name you want and add class vars and
>> initialisers.
>>
>> Regards, Gary
>>
>> ----- Original Message -----
>> From: "Schwab,Wilhelm K" <[email protected]>
>> To: <[email protected]>
>> Sent: Monday, July 26, 2010 6:51 PM
>> Subject: [Pharo-project] Pool dictionaries
>>
>>
>>> What is the current status of pool dictionaries?  I have some code that
>>> uses one, and for pretty good reason.  What do I need to do?
>>>
>>> Bill
>>>
>>>
>>> _______________________________________________
>>> Pharo-project mailing list
>>> [email protected]
>>> http://lists.gforge.inria.fr/cgi-bin/mailman/listinfo/pharo-project
>>
>>
>> _______________________________________________
>> Pharo-project mailing list
>> [email protected]
>> http://lists.gforge.inria.fr/cgi-bin/mailman/listinfo/pharo-project
>>
>> _______________________________________________
>> Pharo-project mailing list
>> [email protected]
>> http://lists.gforge.inria.fr/cgi-bin/mailman/listinfo/pharo-project
>
>
> _______________________________________________
> Pharo-project mailing list
> [email protected]
> http://lists.gforge.inria.fr/cgi-bin/mailman/listinfo/pharo-project
>

_______________________________________________
Pharo-project mailing list
[email protected]
http://lists.gforge.inria.fr/cgi-bin/mailman/listinfo/pharo-project

Reply via email to