Jan. 17, 2012
11:43 a.m.
Thanks guys now what is really strange to me is that whe the code does not contain error to make it compile I have to wrap it with on:do: Any idea?
and if I wrap the execution with a on: error do: I get Start33 in the file
|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
if I remove the on:do: I do not get anything no beep.