[Bug] Pretty Printing

Tim Rowledge rowledge at interval.com
Mon Nov 29 02:33:13 UTC 1999


On Sun 28 Nov, Russell Allen wrote:
> Hi,
> 
> When pretty printing a method containing an instance variable in a block, ie
> 
> someMethod
> 	| a |
> 	a _ [| b | b _ self doSomething. b doSomethingElse].
> 
> The instance variable (ie b) is stripped:
      ^^^^^^^^^^^^^^^^^block temporary!
> 
> someMethod
> 	| a |
> 	a _
> 			[b _ self doSomething.
> 			b doSomethingElse]
It's the price of the litle hack that lets you write bocks with temps;
there is more stuff to do to make disassembly and  debugging work well.
Far better to actually get around to proper Closures.

tim

-- 
Useful random insult:- Sailboat fuel for brains.
Tim Rowledge:  rowledge at interval.com (w)  +1 (650) 842-6110 (w)
 tim at sumeru.stanford.edu (h)  <http://sumeru.stanford.edu/tim>





More information about the Squeak-dev mailing list