On May 20, 2013, at 6:12 PM, Marcus Denker <[email protected]> wrote:
> > On May 20, 2013, at 6:10 PM, Sven Van Caekenberghe <[email protected]> wrote: > >> Hi, >> >> One of the things that always positively surprised me about Smalltalk was >> the fact that BlockClosures are printing showing their actual source code, >> you don't get that in many languages. >> >> But now this seems to be gone, maybe temporarily, from 3.0 >> >> [ :n | n + 1 ] => […] >> >> Was this intentional ? >> > Yes, the old compiler does it with lots of horrible code with decompilation… > so I removed it for now, the new compiler > can do it very nicely. > > I will add it back for when Opal is running soon. The change is (BlockClosure): printOn: aStream aStream nextPutAll: self sourceNode formattedCode. this then uses the new AST and BC<-> AST Mapping… maybe a good way to test it. Marcus
