The following method compiles with Opal:

createRedMorph
    ^ (self new color:Color red); yourself

but gives a syntax error with the old compilers parser

createRedMorph
    ^ (self new color:Color red)End of block expected -> ; yourself


removing the parenthesis of course works for both.
Who is right ?


(for those who understand the ParseTreeSearcher syntax, how would
a search expression look, for finding code like:

   "(some expression);yourself"


nicolai

Reply via email to