Re: [Pharo-users] Methods & Classes using the command line.

2017-04-13 Thread Peter Uhnak
This should be similar to having the code in playground and executing it at once. I guess it's more forgiving. What I sometimes do to work around it is to store the created class into variable, or use symbol and asClass cast e.g. cls := Object subclass: #TestClass. cls compile:'meth'. or Obj

Re: [Pharo-users] Methods & Classes using the command line.

2017-04-13 Thread Guillermo Polito
Hi, On Thu, Apr 13, 2017 at 6:57 PM, nacho <0800na...@gmail.com> wrote: > Hi pharoers, > > If I do the following in a minimal Pharo image, using the command line: > > ./Pharo --headless Pharo.image eval "Object subclass: #TestClass > instanceVariableNames: 'one' classVariableNames: '' package: 'I