logo       

Re: assorted beginner questions: msg#00009

lang.smalltalk.squeak.beginners

Subject: Re: assorted beginner questions

Hi.

On 10/2/07, Mark Smithfield <m_smithfield@xxxxxxxxx> wrote:
As I read code in Squeak, I discover method names that
I do not
know. How do you find these methods if you don't know
the type of
the receiver?
 
If you are asking how to find out what a method does from the code, the easiest way is to place the cursor over the method (just a part of it) and press alt+m (on windows, or maybe ctl+m, or on a Mac, cmd+m).  This should bring up the implementors of the method, and you can browse through all of the implementors and look at the code.  If that still doesn't make sense, you can ask about the method here and others will nicely explain it to you (like Ron did).
 
>> In the floor method from Number,
>>
>>     truncation _ self truncated.
> >
>> What does the underscore mean?
>
>:=
>In some images it shows up as a left-pointing arrow.
>I'm not sure if that's coming back in later iterations or not.
 
The underscore is an assignment.  If you have picked the right font, you won't see underscores in the code, but rather a left-pointing arrow.  I believe these fonts are still in the current versions of Squeak - but they just arent the default in some (most?) of the distributions.  So, if you change the font (or modify the font yourself - I haven't done that, but it is doable), then you can currently get back the left-pointing arrow.
 
-Chris
 

 
_______________________________________________
Beginners mailing list
Beginners@xxxxxxxxxxxxxxxxxxxxxxxxxx
http://lists.squeakfoundation.org/mailman/listinfo/beginners
<Prev in Thread] Current Thread [Next in Thread>
Google Custom Search

News | FAQ | advertise