Bert your are super!<div><br><div><blockquote class="gmail_quote" style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0.8ex; border-left-width: 1px; border-left-color: rgb(204, 204, 204); border-left-style: solid; padding-left: 1ex; ">
* never call &quot;super initialize&quot; on the class side</blockquote><div> Why? I thought it was &quot;polite&quot; to do it, =)</div><br><div class="gmail_quote">On Sat, Mar 20, 2010 at 10:10, Bert Freudenberg <span dir="ltr">&lt;<a href="mailto:bert@freudenbergs.de">bert@freudenbergs.de</a>&gt;</span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;"><div><div></div><div class="h5">On 20.03.2010, at 09:46, Alex Schenkman wrote:<br>
&gt; Hi List!<br>
&gt;<br>
&gt; I&#39;m playing with class variables. How should I initialize them?<br>
&gt; I&#39;ve tried with the class method initialize but it does not do the job.<br>
&gt;<br>
&gt; Pirulo class&gt;&gt;initialize<br>
&gt;     super initialize.<br>
&gt;     myClassVar := Dictionary new at: &#39;one&#39; put: 1.<br>
<br>
</div></div>* never call &quot;super initialize&quot; on the class side<br>
* class variables should be capitalized<br>
* class initializers need to be executed manually<br>
* they are only executed automatically when loading the class (e.g. file-in or via Monticello)<br>
<br>
So this would be right:<br>
<br>
Pirulo class&gt;&gt;initialize<br>
    &quot;self initialize&quot;<br>
<div class="im">    MyClassVar := Dictionary new at: &#39;one&#39; put: 1.<br>
<br>
</div>The &quot;self initialize&quot; comment is conventionally put there so you can easily double-click after the opening quotes to select the whole expression, and do-it. You need to do it any time you change the initialize method. This works because when evaluating code in a Browser, &quot;self&quot; refers to the currently selected class.<br>

<br>
- Bert -<br>
<br>
<br>
_______________________________________________<br>
Beginners mailing list<br>
<a href="mailto:Beginners@lists.squeakfoundation.org">Beginners@lists.squeakfoundation.org</a><br>
<a href="http://lists.squeakfoundation.org/mailman/listinfo/beginners" target="_blank">http://lists.squeakfoundation.org/mailman/listinfo/beginners</a><br>
</blockquote></div><br></div></div>