Create message with text

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
2 messages Options
Reply | Threaded
Open this post in threaded view
|

Create message with text

Ang BeePeng
Hi.

I know that a class can be created using only text, send a message      
       "subclass: #ClassName
        instanceVariableNames: ''
        classVariableNames: ''
        poolDictionaries: ''
        category: '' " to another class.

Can I create a method of this class with text only? How? I tried to follow class Compiler, CompiledMethod, I followed message "accept", but I didn't get any obvious solution.

Thanks.

Ang Beepeng
Reply | Threaded
Open this post in threaded view
|

Re: [squeak-dev] Create message with text

Josh Gargus
On Jan 19, 2010, at 11:28 PM, Ang BeePeng wrote:

>
> Hi.
>
> I know that a class can be created using only text, send a message      
>       "subclass: #ClassName
> instanceVariableNames: ''
> classVariableNames: ''
> poolDictionaries: ''
> category: '' " to another class.
>
> Can I create a method of this class with text only? How? I tried to follow
> class Compiler, CompiledMethod, I followed message "accept", but I didn't
> get any obvious solution.


I've been using ClassDescription>>compile:classified:withStamp:notifying:logSource:

Cheers,
Josh




>
> Thanks.
>
> Ang Beepeng
> --
> View this message in context: http://n4.nabble.com/Create-message-with-text-tp1018217p1018217.html
> Sent from the Squeak - Dev mailing list archive at Nabble.com.
>