<html><head></head><body bgcolor="#FFFFFF"><div>Think varargs:  value: x = (value) allows blocks and others to ignore arguments they don't care about. </div><div><br></div><div>Take care,<br><br>-- David (tapped out on my iPhone; blame it for any typoze;-)</div><div><br>On Dec 22, 2011, at 9:10 AM, Thorsten Dittmar <<a href="mailto:thormar@me.com">thormar@me.com</a>> wrote:<br><br></div><div></div><blockquote type="cite"><div>














<span style="display:none"> </span>



    <div id="ygrp-text">
      
      
      <p>Hello David,</p><div><br></div><div>for the object 17 and the method value it makes sense, but the object 17 and the method value: x it doesn't make so much sense. I always get a little bit nervous, when an object can response to a meaningless message. In our case it will answer again 17 because value: x is implemented as "self value". It would prefer to get an error, because it is much more difficult to find an error in a system that "works".</div><div><br></div><div>anyhow,  I got your intention and that was what I was asking for. Thx for answering</div><div><br></div><div>best regards</div><div><br></div><div>thorsten </div><div><br></div><div><br><div><div>On Dec 22, 2011, at 5:43 PM, David Ungar wrote:</div><br class="Apple-interchange-newline"><blockquote type="cite">













<div style="background-color: #fff;">
<span> </span>



    <div id="ygrp-text"><div><br class="webkit-block-placeholder"></div><div>What is the value of 17? Or of 'foo' ? We thought it made sense that the value of 17 is 17.</div><div>That way you can write:  max: x = ( > x ifTrue: self IfFalse: x )</div><div>without square brackets. The value method gets inlined out, anyway.</div><div>After all, 17 knows it's not a block.<br><br>- David (from iPad, typos likely)</div><div><br>On Dec 22, 2011, at 8:12 AM, Thorsten Dittmar <<a href="mailto:thormar@me.com">thormar@me.com</a>> wrote:<br><br></div><div></div><blockquote type="cite"><div>














<span> </span>



    <div id="ygrp-text"><p>Hello folks,<br>
<br>
I was always wondering why value and value with parameters was implemented in defaultBehavior and not in the trait block. Of course, that can make some stuff easier, but it looks a little bit like a dirty hack. Would be nice, if somebody can tell me a little bit the background of this implementation.<br>
<br>
thx<br>
<br>
</p>

    </div>
     

    





<!-- end group email -->

</div></blockquote><div><br class="webkit-block-placeholder"></div>

    </div>
     

    

</div>



<!-- end group email -->

</blockquote></div><br></div><p></p>

    </div>
     

    





<!-- end group email -->

</div></blockquote></body></html>