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 ? Sven
On May 20, 2013, at 6:10 PM, Sven Van Caekenberghe <sven@stfx.eu> 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. Marcus
On 20 May 2013, at 18:12, Marcus Denker <marcus.denker@inria.fr> wrote:
On May 20, 2013, at 6:10 PM, Sven Van Caekenberghe <sven@stfx.eu> 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.
Marcus
OK, I suspected something like that. Sven
On May 20, 2013, at 6:12 PM, Marcus Denker <marcus.denker@inria.fr> wrote:
On May 20, 2013, at 6:10 PM, Sven Van Caekenberghe <sven@stfx.eu> 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
Hope not, since it's a real pain :( Ben On May 20, 2013, at 6:08 PM, Sven Van Caekenberghe <sven@stfx.eu> 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 ?
Sven
participants (3)
-
Benjamin -
Marcus Denker -
Sven Van Caekenberghe