[Newbies] Pool Variables

2013-07-01 Thread Joseph J Alotta
Just curious, can someone give me an real life example of when you would need 
to use pool variables and no other variable would work?


On Jun 29, 2013, at 7:00 AM, beginners-requ...@lists.squeakfoundation.org wrote:

 Yes, class variables will be visible to subclasses of subclasses and so on.
 Also, I didn't mention pool variables, but 99.9% of the time you won't want
 to use those.

___
Beginners mailing list
Beginners@lists.squeakfoundation.org
http://lists.squeakfoundation.org/mailman/listinfo/beginners


RE: [Newbies] Pool Variables

2013-07-01 Thread Ron Teitelbaum
Hi John,

You might want to parse a configuration file but you are not sure where it
is used.  You could share these values using pool variables.  

It actually is useful but you can certainly accomplish this may other ways.

All the best,

Ron Teitelbaum

 -Original Message-
 From: beginners-boun...@lists.squeakfoundation.org [mailto:beginners-
 boun...@lists.squeakfoundation.org] On Behalf Of Joseph J Alotta
 Sent: Monday, July 01, 2013 11:16 PM
 To: beginners@lists.squeakfoundation.org
 Subject: [Newbies] Pool Variables
 
 Just curious, can someone give me an real life example of when you would
need
 to use pool variables and no other variable would work?
 
 
 On Jun 29, 2013, at 7:00 AM, beginners-requ...@lists.squeakfoundation.org
 wrote:
 
  Yes, class variables will be visible to subclasses of subclasses and so
on.
  Also, I didn't mention pool variables, but 99.9% of the time you won't
  want to use those.
 
 ___
 Beginners mailing list
 Beginners@lists.squeakfoundation.org
 http://lists.squeakfoundation.org/mailman/listinfo/beginners


___
Beginners mailing list
Beginners@lists.squeakfoundation.org
http://lists.squeakfoundation.org/mailman/listinfo/beginners


Re: [Newbies] Pool Variables

2013-07-01 Thread K. K. Subramaniam

On Tuesday 02 July 2013 08:46 AM, Joseph J Alotta wrote:

Just curious, can someone give me an real life example of when you would need 
to use pool variables and no other variable would work?


Generally information from external world are made available through 
pool variables since they are broadly consumed by many classes. Examples 
are

 * Physical or Math constants like pi, e, ...
 * Conventional names for weeks, months, colors, directions, playing 
cards, chess pieces.

 * Elements of binary file headers
 * Character and Font tables
 * Sensor events coming from hardware devices (like button codes)

Explore

   SharedPool subclasses

to see real-life usage in method source codes.

HTH .. Subbu

___
Beginners mailing list
Beginners@lists.squeakfoundation.org
http://lists.squeakfoundation.org/mailman/listinfo/beginners