I was a little confused about it. But now I understand.
Thank you very much.

2016-02-03 22:09 GMT+02:00 Julien Delplanque [via Smalltalk] <
ml-node+s1294792n4875655...@n4.nabble.com>:

> Hi,
>
> You can create a class programatically using:
>
> ParentClass subclass: #ClassName
>      instanceVariableNames: 'instVar1 instVar2'
>      classVariableNames: ''
>      category: 'APackage'
>
> Then you can add method using:
>
> ClassName compile: 'helloWorld
>      ^''Hello world!'''
>
> for example.
>
> I don't know if this answer you question?
>
> Julien
>
> On 03/02/16 20:48, Khrystyna Mykhailiuk wrote:
>
> > Hi, all!
> >
> > Is it possible in Pharo to create a type (class) dynamically?
> > Not using special space for it, but create type by running method of
> another
> > class.
> >
> > Thanks,
> > Khrystyna.
> >
> >
> >
> > --
> > View this message in context:
> http://forum.world.st/Create-type-class-dynamically-tp4875651.html
> > Sent from the Pharo Smalltalk Users mailing list archive at Nabble.com.
> >
>
>
>
>
> ------------------------------
> If you reply to this email, your message will be added to the discussion
> below:
> http://forum.world.st/Create-type-class-dynamically-tp4875651p4875655.html
> To unsubscribe from Create type(class) dynamically, click here
> <http://forum.world.st/template/NamlServlet.jtp?macro=unsubscribe_by_code&node=4875651&code=Y2hyaXNtaWhheWx5a0BnbWFpbC5jb218NDg3NTY1MXwxMjcyMzQ2ODEw>
> .
> NAML
> <http://forum.world.st/template/NamlServlet.jtp?macro=macro_viewer&id=instant_html%21nabble%3Aemail.naml&base=nabble.naml.namespaces.BasicNamespace-nabble.view.web.template.NabbleNamespace-nabble.view.web.template.NodeNamespace&breadcrumbs=notify_subscribers%21nabble%3Aemail.naml-instant_emails%21nabble%3Aemail.naml-send_instant_email%21nabble%3Aemail.naml>
>




--
View this message in context: 
http://forum.world.st/Create-type-class-dynamically-tp4875651p4875657.html
Sent from the Pharo Smalltalk Users mailing list archive at Nabble.com.

Reply via email to