Howdy!

> in one of the classes in the qcl project, I am dynamically creating new
> classes:
> 
> obj = new qcl.access[typeLower][typeUpper](name);
> 
> When I run "generator.py source" it will complain
> 
> >>> Resolving dependencies...
>     - ! Unknown class referenced: qcl 
> 
> The warning will not have any negative effects, however, is there a way to
> avoid it, so that other users of qcl will not be confused?

The following could be an alternative, that would not require generator
support and would also be easier do document:

obj = new (qcl.Foo.getClassByType(typeLower, typeUpper))(name);

Here getClassByType() is a static method that returns the constructor of
each dynamically created class using the two parameters for the lookup
table.

TTYL,

Andreas



------------------------------------------------------------------------------
Crystal Reports - New Free Runtime and 30 Day Trial
Check out the new simplified licensing option that enables unlimited
royalty-free distribution of the report engine for externally facing 
server and web deployment.
http://p.sf.net/sfu/businessobjects
_______________________________________________
qooxdoo-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/qooxdoo-devel

Reply via email to