Hi.<br><br>
<div><span class="gmail_quote">On 10/2/07, <b class="gmail_sendername">Mark Smithfield</b> <<a href="mailto:m_smithfield@yahoo.com">m_smithfield@yahoo.com</a>> wrote:</span>
<blockquote class="gmail_quote" style="PADDING-LEFT: 1ex; MARGIN: 0px 0px 0px 0.8ex; BORDER-LEFT: #ccc 1px solid">As I read code in Squeak, I discover method names that<br>I do not<br>know. How do you find these methods if you don't know
<br>the type of<br>the receiver? </blockquote>
<div> </div>
<div>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).
</div>
<div> </div>
<div><font color="#550055">>> In the floor method from Number,<br><font color="#550055">></font>><br><font color="#550055">></font>> truncation _ self truncated.<br><font color="#550055">></font>
><br><font color="#550055">></font>> What does the underscore mean?<br></font>
<div style="DIRECTION: ltr"><font color="#550055">></font></div>
<div style="DIRECTION: ltr"><font color="#550055">></font>:=<br><font color="#550055">></font>In some images it shows up as a left-pointing arrow.<br><font color="#550055">></font>I'm not sure if that's coming back in later iterations or not.
<br> </div>
<div style="DIRECTION: ltr">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.
</div>
<div style="DIRECTION: ltr"> </div>
<div style="DIRECTION: ltr">-Chris</div></div>
<div> </div><br> </div>