<br><br><div class="gmail_quote">On Tue, Nov 6, 2012 at 4:03 AM, Nicolas Cellier <span dir="ltr"><<a href="mailto:nicolas.cellier.aka.nice@gmail.com" target="_blank">nicolas.cellier.aka.nice@gmail.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Some kind of Heisenberg principle, you cannot observe a node without<br>
some sort of interaction ;).<br>
We should create a price for the best anti-pattern of the month.<br></blockquote><div><br></div><div>:)</div><div><br></div><div>it confused the hell out of me yesterday as i tried ti debug some compiler stuff. It was the explorer that invoked printing and that wasn't obvious either :)</div>
<div><br></div><div> </div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
It's invaluable for teaching.<br>
<br>
Nicolas<br>
<br>
2012/11/6 <<a href="mailto:commits@source.squeak.org">commits@source.squeak.org</a>>:<br>
<div class="HOEnZb"><div class="h5">> Eliot Miranda uploaded a new version of Compiler to project The Trunk:<br>
> <a href="http://source.squeak.org/trunk/Compiler-eem.239.mcz" target="_blank">http://source.squeak.org/trunk/Compiler-eem.239.mcz</a><br>
><br>
> ==================== Summary ====================<br>
><br>
> Name: Compiler-eem.239<br>
> Author: eem<br>
> Time: 5 November 2012, 3:09:13.298 pm<br>
> UUID: 074c58f2-bc92-4c3f-adff-56c47d3884ef<br>
> Ancestors: Compiler-eem.238<br>
><br>
> Eliminate horrible side-effect in printing whileTrue/whileFalse<br>
> nodes that undid the tranformation to whileTrue:/whileFalse:.<br>
><br>
> =============== Diff against Compiler-eem.238 ===============<br>
><br>
> Item was changed:<br>
> ----- Method: MessageNode>>printWhileOn:indent: (in category 'printing') -----<br>
> printWhileOn: aStream indent: level<br>
> -<br>
> self printReceiver: receiver on: aStream indent: level.<br>
> + self<br>
> + printKeywords: originalSelector<br>
> + arguments: originalArguments<br>
> - (arguments isEmpty not<br>
> - and: [arguments first isJust: NodeNil]) ifTrue:<br>
> - [selector := SelectorNode new<br>
> - key:<br>
> - (selector key == #whileTrue:<br>
> - ifTrue: [#whileTrue]<br>
> - ifFalse: [#whileFalse])<br>
> - code: #macro.<br>
> - arguments := Array new].<br>
> - self printKeywords: selector key arguments: arguments<br>
> on: aStream indent: level!<br>
><br>
><br>
<br>
</div></div></blockquote></div><br><br clear="all"><div><br></div>-- <br>best,<div>Eliot</div><br>