hi,

what's the best way to instantiate an object whose class is known only at 
run-time?

I figured out that eval() is not very compatible with qooxdoo build version, so 
this fails to run:

eval('new ' . clazz . '(var1,var2)');

even if I interpolate the argument values into strings, it still doesn't work.

Is there an API method which would take a class name and arguments and return 
an 
object?

------------------------------------------------------------------------------
Free Software Download: Index, Search & Analyze Logs and other IT data in 
Real-Time with Splunk. Collect, index and harness all the fast moving IT data 
generated by your applications, servers and devices whether physical, virtual
or in the cloud. Deliver compliance at lower cost and gain new business 
insights. http://p.sf.net/sfu/splunk-dev2dev 
_______________________________________________
qooxdoo-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/qooxdoo-devel

Reply via email to