[Pharo-project] in the quest of HazelNut: the crazy on:do: influence :)
hi guys I'm playing with Hazeltracer and I generate 3.4 mb image with Opal. Now I have one single process that one :) and I do not understand because the following code work: I get 33 in the file. No stack dump. freshProcessWorkingWithOpalLoaded ^ [ |file| [ file := StandardFileStream fileNamed: 'loglog.txt'. file nextPutAll: 'Start'. [ file nextPutAll: ((OCClosureCompiler new compile: 'foo ^ 33.' in: Object classified: nil notifying: nil ifFail: []) generate valueWithReceiver: Object new arguments: #()) asString] on: Error do: [:ex | ex outer errorReportOn: file]. ] ensure: [file close]. [true] whileTrue: [Beeper primitiveBeep. ]] newProcess while this one does not :). I do not get the influence of the on:do: freshProcessWorkingWithOpalLoaded ^ [ |file| [ file := StandardFileStream fileNamed: 'loglog.txt'. file nextPutAll: 'Start'. file nextPutAll: ((OCClosureCompiler new compile: 'foo ^ 33.' in: Object classified: nil notifying: nil ifFail: []) generate valueWithReceiver: Object new arguments: #()) asString ] ensure: [file close]. [true] whileTrue: [Beeper primitiveBeep. ]] newProcess any idea? Stef
participants (1)
-
Stéphane Ducasse