<div dir="ltr">Yes, class variables will be visible to subclasses of subclasses and so on. Also, I didn&#39;t mention pool variables, but 99.9% of the time you won&#39;t want to use those.</div><div class="gmail_extra"><br>
<br><div class="gmail_quote">On Fri, Jun 28, 2013 at 7:27 AM, Azka Niazi <span dir="ltr">&lt;<a href="mailto:azka.akn@live.com" target="_blank">azka.akn@live.com</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 dir="ltr">Just a simple question. Although it seems pretty obvious but just  for the sake of confirming, are the class variables also visible to the subclasses of subclasses and so on?<br><br><div><hr>Subject: Re: [Newbies] Scope?<br>
From: <a href="mailto:casey.obrien.r@gmail.com" target="_blank">casey.obrien.r@gmail.com</a><br>Date: Sun, 23 Jun 2013 15:20:50 -0700<br>To: <a href="mailto:beginners@lists.squeakfoundation.org" target="_blank">beginners@lists.squeakfoundation.org</a><div>
<div class="h5"><br><br><div>Unfortunately this is not a question with a short answer. </div><div><br></div><div>Namespace for instance variables: they&#39;re visible within the instance object they live in. Class variables are tricky; they&#39;re visible to the class they belong to as well as its subclasses. Class instance variables are visible only from the class they&#39;re declared in. </div>
<div><br></div><div>Blocks in brackets which look like [Object inspect] may have closure semantics (this is true in the latest Squeak, Pharo, and Cuis, but hasn&#39;t been integrated in e.g. Scratch.)</div><div><br></div>
<div>Traditionally, Smalltalk-80 has had a single global namespace for classes, but I think Squeak and Pharo are running Environments now, which breaks up the single class namespace in a way familiar from languages wherein one must include xyz in order to get access to certain state and behavior. <br>
<br>Hopefully this helps, as confusing as it is. <br><br>On Jun 23, 2013, at 1:41 PM, Azka Niazi &lt;<a href="mailto:azka.akn@live.com" target="_blank">azka.akn@live.com</a>&gt; wrote:<br><br></div><div></div><blockquote>
<div>


<div dir="ltr">What scope is implemented in Squeak? Where can I find proper tutorial or description of this for Squeak&#39;s implementation?<div><br></div><div>Regards,</div><div>Azka</div>                                               </div>
</div></blockquote><blockquote><div><span>_______________________________________________</span><br><span>Beginners mailing list</span><br><span><a href="mailto:Beginners@lists.squeakfoundation.org" target="_blank">Beginners@lists.squeakfoundation.org</a></span><br>
<span><a href="http://lists.squeakfoundation.org/mailman/listinfo/beginners" target="_blank">http://lists.squeakfoundation.org/mailman/listinfo/beginners</a></span><br></div></blockquote><br>_______________________________________________
Beginners mailing list
<a href="mailto:Beginners@lists.squeakfoundation.org" target="_blank">Beginners@lists.squeakfoundation.org</a>
<a href="http://lists.squeakfoundation.org/mailman/listinfo/beginners" target="_blank">http://lists.squeakfoundation.org/mailman/listinfo/beginners</a></div></div></div>                                               </div></div>
<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>
<br></blockquote></div><br><br clear="all"><div><br></div>-- <br>Casey Ransberger
</div>