<html><body>
<p>+1<br>
But you may eventually need some kind of visual indicator in the browser showing what prefs were in place when the method was compiled.<br>
Yuck.<br>
<br>
Excellent job of handling the issue though.<br>
Regards,<br>
Sam<br>
<br>
<br>
Sam S. Adams, IBM Distinguished Engineer, IBM Research<br>
Mobile: 919-696-6064, email: ssadams@us.ibm.com<br>
Asst: Kenndra K. Quiles. (732) 926-2292 Fax: (732) 926-2455, email: Kenndra@us.ibm.com<br>
&lt;&lt;Hebrews 11:6, Proverbs 3:5-6, Romans 1:16-17, I Corinthians 1:10&gt;&gt;<br>
<br>
<br>
<tt>squeak-dev-bounces@lists.squeakfoundation.org wrote on 03/12/2010 11:14:49 PM:<br>
<br>
&gt; Andreas Raab &lt;andreas.raab@gmx.de&gt; </tt><br>
<tt>&gt; Sent by: squeak-dev-bounces@lists.squeakfoundation.org<br>
&gt; </tt><br>
<tt>&gt; 03/12/2010 11:14 PM</tt><br>
<tt>&gt; <br>
&gt; Please respond to<br>
&gt; The general-purpose Squeak developers list &lt;squeak-<br>
&gt; dev@lists.squeakfoundation.org&gt;</tt><br>
<tt>&gt; <br>
&gt; To</tt><br>
<tt>&gt; <br>
&gt; The general-purpose Squeak developers list &lt;squeak-<br>
&gt; dev@lists.squeakfoundation.org&gt;</tt><br>
<tt>&gt; <br>
&gt; cc</tt><br>
<tt>&gt; <br>
&gt; Subject</tt><br>
<tt>&gt; <br>
&gt; [squeak-dev] Selectors with underscores: Have your cake and eat it, too...</tt><br>
<tt>&gt; <br>
&gt; Folks -<br>
&gt; <br>
&gt; Attached my take on selectors with underscores. It basically separates <br>
&gt; the issue of using underscores in assignment from the issue of using <br>
&gt; underscores in selectors, puts this into two individual preferences, and <br>
&gt; allows per-class scoping while providing a system-wide default.<br>
&gt; <br>
&gt; The possible combinations of preferences are:<br>
&gt; <br>
&gt; * allowUnderscoreAssignments off, allowUnderscoreSelectors: off<br>
&gt; The use of underscores is forbidden, i.e., the Croquet model.<br>
&gt; <br>
&gt; * allowUnderscoreAssignments on, allowUnderscoreSelectors: off<br>
&gt; The classic Squeak usage; all of the following are assignments:<br>
&gt; <br>
&gt; &nbsp; &nbsp;a _ b &nbsp; &nbsp;=&gt; &nbsp; &nbsp; &nbsp;a := b<br>
&gt; &nbsp; &nbsp;b_ c &nbsp; =&gt; &nbsp; &nbsp; &nbsp;b := c<br>
&gt; &nbsp; &nbsp;d _e &nbsp; =&gt; &nbsp; &nbsp; &nbsp; d := e<br>
&gt; &nbsp; &nbsp;f_g &nbsp; =&gt; &nbsp; &nbsp; &nbsp;f := g.<br>
&gt; <br>
&gt; * allowUnderscoreAssignments off, allowUnderscoreSelectors: on<br>
&gt; The standard usage in other dialects<br>
&gt; <br>
&gt; &nbsp; &nbsp;a _ b &nbsp; =&gt; &nbsp; &nbsp; &nbsp; ((a) _) b<br>
&gt; &nbsp; &nbsp;b_ c &nbsp; =&gt; &nbsp; &nbsp; &nbsp;(b_) c<br>
&gt; &nbsp; &nbsp;d _e &nbsp; =&gt; &nbsp; &nbsp; &nbsp;(d) _e<br>
&gt; &nbsp; &nbsp;f_g &nbsp; =&gt; &nbsp; &nbsp; &nbsp;(f_g)<br>
&gt; <br>
&gt; * allowUnderscoreAssignments on, allowUnderscoreSelectors: on<br>
&gt; The hybrid usage requiring spaces around underscore for assignment:<br>
&gt; <br>
&gt; &nbsp; &nbsp;a _ b &nbsp; =&gt; &nbsp; &nbsp; &nbsp; a := b<br>
&gt; &nbsp; &nbsp;b_ c &nbsp; =&gt; &nbsp; &nbsp; &nbsp;(b_) c<br>
&gt; &nbsp; &nbsp;d _e &nbsp; =&gt; &nbsp; &nbsp; &nbsp;(d) _e<br>
&gt; &nbsp; &nbsp;f_g &nbsp; =&gt; &nbsp; &nbsp; &nbsp;(f_g)<br>
&gt; <br>
&gt; This gives us a range of options to decide how to deal with it. I would <br>
&gt; personally say that for the core image we should go with the first <br>
&gt; option (disable underscores altogether) and only enable whichever option <br>
&gt; we like for the release.<br>
&gt; <br>
&gt; What do people think about this approach? I think it provides the most <br>
&gt; options and gives us ample flexibility to decide what we'd like to use <br>
&gt; down the road.<br>
&gt; <br>
&gt; If there is no fundamental opposition I'll push it into the trunk in a <br>
&gt; couple of days.<br>
&gt; <br>
&gt; Cheers,<br>
&gt; &nbsp; &nbsp;- Andreas<br>
&gt; [attachment &quot;Underscores.2.cs&quot; deleted by Sam Adams/Raleigh/IBM] <br>
</tt></body></html>