A class is &quot;just&quot; another object whose own class is Class. I actually don&#39;t know when the class initialisiation method is called after creation. As usual, if all it does is things you know to be safe, go ahead and call it manually.<br>
<br>
<div><span class="gmail_quote">On 9/29/08, <b class="gmail_sendername">Mark Volkmann</b> &lt;<a href="mailto:mark@ociweb.com">mark@ociweb.com</a>&gt; wrote:</span>
<blockquote class="gmail_quote" style="PADDING-LEFT: 1ex; MARGIN: 0px 0px 0px 0.8ex; BORDER-LEFT: #ccc 1px solid">
<div style="WORD-WRAP: break-word">
<div><span class="q">
<div>On Sep 29, 2008, at 6:00 AM, Marcin Tustin wrote:</div><br>
<blockquote type="cite">The initialize method on the class side will be called only when *the class* is initialised. You are thinking of the instance-side initialize method which is called each time you create an instance. </blockquote>

<div><br>&nbsp;</div></span>
<div>Wow. I wasn&#39;t aware that there was both a class and instance initialize method. Thanks for explaining that!</div>
<div><br>&nbsp;</div>
<div>What causes the class initialize method to be invoked ... and reinvoked after I change it?</div><span class="q"><br>
<blockquote type="cite">
<div><span class="gmail_quote">On 9/29/08, <b class="gmail_sendername">Mark Volkmann</b> &lt;<a onclick="return top.js.OpenExtLink(window,event,this)" href="mailto:mark@ociweb.com" target="_blank">mark@ociweb.com</a>&gt; wrote:</span> 
<blockquote class="gmail_quote" style="PADDING-LEFT: 1ex; MARGIN: 0px 0px 0px 0.8ex; BORDER-LEFT: #ccc 1px solid"><span>On Sep 28, 2008, at 11:32 PM, K. K. Subramaniam wrote:<br><br>
<blockquote class="gmail_quote" style="PADDING-LEFT: 1ex; MARGIN: 0px 0px 0px 0.8ex; BORDER-LEFT: #ccc 1px solid">On Sunday 28 Sep 2008 7:26:43 pm Mark Volkmann wrote:<br>
<blockquote class="gmail_quote" style="PADDING-LEFT: 1ex; MARGIN: 0px 0px 0px 0.8ex; BORDER-LEFT: #ccc 1px solid">I think my main issue is scoping. I want to define a constant that is<br>associated with a class to avoid name conflicts.<br>
</blockquote>See classes Color, Cursor or Float for examples of scoped constants:<br>&nbsp;Color red<br>&nbsp;Cursor wait<br>&nbsp;Float pi<br><br>For constants that should be exposed to a few (but not all) classes, use pool<br>dictionaries.<br>
</blockquote><br></span>Thanks! This brings up another question. Where is a good place to initialize a constant? I see in the case of &quot;Float pi&quot; that it is held in a class variable that is initialized in the initialize method. Isn&#39;t it the case that the initialize method is only called if a Float object is created? Also, isn&#39;t it called every time a Float object is created? It seems that would mean if I followed that pattern for one of my own constants then I wouldn&#39;t be sure it was set and I&#39;d pay the cost of setting it many times.<br>
<br>---<br><span>Mark Volkmann</span> 
<div><span><br><br><br><br><br>_______________________________________________<br>Beginners mailing list<br><a onclick="return top.js.OpenExtLink(window,event,this)" href="mailto:Beginners@lists.squeakfoundation.org" target="_blank">Beginners@lists.squeakfoundation.org</a><br>
<a onclick="return top.js.OpenExtLink(window,event,this)" href="http://lists.squeakfoundation.org/mailman/listinfo/beginners" target="_blank">http://lists.squeakfoundation.org/mailman/listinfo/beginners</a><br></span></div>
</blockquote></div><br>_______________________________________________<br>Beginners mailing list<br><a onclick="return top.js.OpenExtLink(window,event,this)" href="mailto:Beginners@lists.squeakfoundation.org" target="_blank">Beginners@lists.squeakfoundation.org</a><br>
<a onclick="return top.js.OpenExtLink(window,event,this)" href="http://lists.squeakfoundation.org/mailman/listinfo/beginners" target="_blank">http://lists.squeakfoundation.org/mailman/listinfo/beginners</a><br></blockquote>
</span></div><br>
<div><span style="WORD-SPACING: 0px; FONT: 14px Arial; TEXT-TRANSFORM: none; COLOR: rgb(0,0,0); TEXT-INDENT: 0px; WHITE-SPACE: normal; LETTER-SPACING: normal; BORDER-COLLAPSE: separate"><span style="WORD-SPACING: 0px; FONT: 14px Arial; TEXT-TRANSFORM: none; COLOR: rgb(0,0,0); TEXT-INDENT: 0px; WHITE-SPACE: normal; LETTER-SPACING: normal; BORDER-COLLAPSE: separate">
<div style="WORD-WRAP: break-word">
<div><br>---</div>
<div>Mark Volkmann</div>
<div><br>&nbsp;</div></div></span><br></span><br>&nbsp;</div><br>&nbsp;</div><br>_______________________________________________<br>Beginners mailing list<br><a onclick="return top.js.OpenExtLink(window,event,this)" href="mailto:Beginners@lists.squeakfoundation.org">Beginners@lists.squeakfoundation.org</a><br>
<a onclick="return top.js.OpenExtLink(window,event,this)" href="http://lists.squeakfoundation.org/mailman/listinfo/beginners" target="_blank">http://lists.squeakfoundation.org/mailman/listinfo/beginners</a><br><br></blockquote>
</div><br>