What does it do this code? a := 1. (undeclared 'a')
On 19 March 2012 07:13, Hernán Morales Durand <[email protected]>wrote: > If you have Grease loaded: > > Gofer new > squeaksource: 'CodeGenerator'; > package: 'CodeGenerator'; > load. > > [CGSmalltalk new > setSourceAsCode; > targetClass: Object; > compile: 'testMethod > ^ 42. ^ 32' ] > on: SyntaxErrorNotification " or Notification " > do: [: ex | ^ ex errorMessage ] > > > 2012/3/17 Milan Mimica <[email protected]> > >> Hello, >> >> i want to add some scripting capabilities to my app, and I wand to use >> plain smalltalk for that. The only problem is that I still haven't found a >> way to generate a compiled which would return a string describing a problem >> in case a syntax errors. Can I get some help? >> >> >> -- >> Milan Mimica >> > > > > -- > Hernán Morales > Institute of Veterinary Genetics. > National Scientific and Technical Research Council (CONICET). > La Plata (1900), Buenos Aires, Argentina. > Telephone: +54 (0221) 421-1799. > Internal: 422 > Fax: 425-7980 or 421-1799. > > -- Milan Mimica http://sparklet.sf.net
