The output on the transcript is "3"
- ok
This method is like the one above, but the nested block
is in the receiver of the whileTrue:[] call (again, an optimized block, right?)
|a b c|
a:=1.
b:=2.
c:=3.
[
������ [ a asString ] on:Error do:[:ex | a value:a value:b value:c].
������ ��c <0 ] whileTrue:[].
thisContext method numTemps logCr.
a
The output on the Transcript is "1"
And it depends on the number of used variables in the do-Block
The same method but with the do-Block
do:[:ex | a value:a value:b]
would print 2 as number of temporaries.
nicolai