[Seaside] Smalltalk question
Philippe Marschall
philippe.marschall at gmail.com
Fri Aug 5 16:51:49 CEST 2005
(Smalltalk classNamed: anObject class name , 'Controller') new "you
can also use #at: instead"
2005/8/5, Dmitry Dorofeev <dima-sender-3c337a at yasp.com>:
> Hi all.
>
> I'd like to create an instance of class by knowing only a class name.
>
> something like this:
>
> classname := anObject class asString , 'Controller'.
> "expect something like FSBlockListController in a classname"
>
> controller := Smalltalk giveMeInstanceOf: classname.
> "expect result of /FSBlockListController new/ in controller"
>
> I know it should be possible in Squeak in one line of code,
> but i am still a newbie...
>
> Thank you very much.
>
> -Dmitry.
> _______________________________________________
> Seaside mailing list
> Seaside at lists.squeakfoundation.org
> http://lists.squeakfoundation.org/listinfo/seaside
>
More information about the Seaside
mailing list