Hi,
Tested on GS 3.5.1
It seems that are 3 groups of methods to compile expressions:
1) Answer an exception if the compilation fail
[Object
compileMethod:
'compilationError
^ self2 add: self3'
dictionaries: GsSession currentSession symbolList
category: 'other'
environmentId: 0]
on: CompileError do: [:ex | ex halt].
2) Does not answer an exception but it does NOT compile the source
[Object
compileMethod:
'compilationError
^self2 add: self3'
dictionaries: GsSession currentSession symbolList
category: 'other' ]
on: CompileError do: [:ex | ex halt].
3) Does not answer an exception (if the source is well formatted) and it
does compile the source:
[Object
compileMethod:
'compilationError
^ self2 add: self9 '
category: 'other'
using: GsSession currentSession symbolList]
on: CompileError do: [:ex | ex halt].
But if evaluate the following it does answer an exception (with an invalid
formatted source):
[Object
compileMethod:
'compilationError
^ self2 add: self9 ; adf() '
category: 'other'
using: GsSession currentSession symbolList]
on: CompileError do: [:ex | ex halt].
--
Sent from:
http://forum.world.st/GLASS-f1460844.html_______________________________________________
Glass mailing list
[hidden email]
https://lists.gemtalksystems.com/mailman/listinfo/glass