<div dir="ltr"><div class="gmail_extra"><br><div class="gmail_quote">2014-05-12 20:30 GMT+02:00 <span dir="ltr"><<a href="mailto:commits@source.squeak.org" target="_blank">commits@source.squeak.org</a>></span>:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
Eliot Miranda uploaded a new version of Compiler to project The Trunk:<br>
<a href="http://source.squeak.org/trunk/Compiler-eem.280.mcz" target="_blank">http://source.squeak.org/trunk/Compiler-eem.280.mcz</a><br>
<br>
==================== Summary ====================<br>
<br>
Name: Compiler-eem.280<br>
Author: eem<br>
Time: 12 May 2014, 11:29:30.127 am<br>
UUID: f8e06e2d-2a56-40e8-9783-6b17b6ca0e2e<br>
Ancestors: Compiler-nice.279<br>
<br>
Get rid of the old<br>
([:a :b|] value: #first value: #last) == #last<br>
anachronism. Now all empty blocks answer nil.<br>
<br>
=============== Diff against Compiler-nice.279 ===============<br>
<br>
Item was changed:<br>
----- Method: BlockNode>>arguments:statements:returns:from: (in category 'initialize-release') -----<br>
arguments: argNodes statements: statementsCollection returns: returnBool from: encoder<br>
"Compile."<br>
<br>
arguments := argNodes.<br>
statements := statementsCollection size > 0<br>
+ ifTrue: [statementsCollection]<br>
+ ifFalse: [Array with: NodeNil].<br>
- ifTrue: [statementsCollection]<br>
- ifFalse: [argNodes size > 0<br>
- ifTrue: [statementsCollection copyWith: arguments last]<br>
- ifFalse: [Array with: NodeNil]].<br>
optimized := false.<br>
returns := returnBool!<br>
<br>
<br>
</blockquote></div><br></div><div class="gmail_extra">Yeah, it even simplifies the code, so there is really no reason not to do it.<br></div><div class="gmail_extra">If ever someone complains that we dropped backward compatibility, we can now tell: you should not rely on undefined behavior<br>
(a very popular sentence in {} world)<br></div></div>