From: Simon Strandgaard <0bz63fz3m1qt3001@...> Date: 2003-07-01T01:02:00+09:00 Subject: Re: dynamic object creation On Mon, 30 Jun 2003 16:49:05 +0000, Aryeh Friedman wrote: > If I have something like this: > > s="Array" > > How whould I get something like this: > > aObject=s.new > > In "plain" english I am asking if I have a valid name of a class in a > string how do I create an instance of the class the string contains? How about this ? s="Array" aObject=eval(s+".new") -- Simon Strandgaard