I'm expecting the following code to print on the Transcript until i change the inspected Valueholder to hold false. But nothing at all shows on the transcript.
| f | f := ValueHolder new contents: true. f inspect. [ [ f contents ] whileTrue: [ Transcript show: 'working' ;cr ] ] forkAt: Processor userBackgroundPriority.
Can someone explain, or give a snippet that "works"? ( The equivalent does in VW)
This doesn't have something to do with the discussion about BlockContexts' temporaries "real vs squeak" I hope?
Cheers, John
John Clonts wrote:
I'm expecting the following code to print on the Transcript until i change the inspected Valueholder to hold false. But nothing at all shows on the transcript.
| f | f := ValueHolder new contents: true. f inspect. [ [ f contents ] whileTrue: [ Transcript show: 'working' ;cr ] ] forkAt: Processor userBackgroundPriority.
I see what I think you expect, i.e., lots of 'working' going by in the Transcript until I make f's contents false, when it stops. This is in a 2.8alpha image with updates through 1789.
Steve
squeak-dev@lists.squeakfoundation.org