On Mar 2, 2010, at 9:39 PM, Henrik Sperre Johansen wrote:
PS. For the not-so-faint-of-heart, open a Transcript and try evaluating: |proc| proc := [[Transcript show: 'Start!'. ] ensure: [Transcript show: 'Finish!' Processor yield.]] newProcess. proc resume. Processor yield. proc suspend. proc terminate.
Why don't we get it printing?
Forgot a . there, supposed to be
Yes I saw. I was confusing a workspace for the transcript. Start!Start!Finish! here too
|proc| proc := [[Transcript show: 'Start!'. ] ensure: [Transcript show: 'Finish!'. Processor yield.]] newProcess. proc resume. Processor yield. proc suspend. proc terminate.
on my machine it prints: Start!Start!Finish!
yay Henry _______________________________________________ Pharo-project mailing list Pharo-project@lists.gforge.inria.fr http://lists.gforge.inria.fr/cgi-bin/mailman/listinfo/pharo-project