Help with creating methods from workspace

Bert Freudenberg bert at impara.de
Fri Sep 30 19:51:45 UTC 2005


Am 30.09.2005 um 21:26 schrieb Valdas Bucinskas:

> Hello !
>
> How do I create a simple method from workspace? I want to execute
> smth like
>
> MyClass createMethod: 'methodName' sourse: '^true' in: 'instance-side'

for "instance side":

     MyClass compile: 'methodName
         ^true'

for "class side"

     MyClass class compile: 'methodName
         ^true'

because the "class side" is just the class of your class (classes are  
objects, too, as you probably know).

- Bert -




More information about the Squeak-dev mailing list