Hi all of you, I'm writing some classes dealing with biological data and coming from C++ I'm used to have check on the type of my incoming function parameters. How, in qooxdoo, can I check this type? I've found the qx.core.Assert class and I'm looking for something like the assertQxObject but on any type of sub-QxObject. In fact, looking at the implementation I've found that the qx.core.Assert.__isQxInstance function does exactly what I'm looking for. Why not implementing an assert like assertQxInstance(value, className, msg)? Or is there something like that anywhere in the framework that I've not seen? I know I can use Interfaces and assert the implementation of interfaces in my incoming objects but in simple cases it's simpler to check class type than writing interfaces for each concept and then writing classes to implement them. Best, Sylvain -- Sylvain Gaillard Informatics / Bioinformatics IFR 149 Plant Quality and Health UMR 1259 Genetics and Horticulture Angers-Nantes INRA Center BP 60057 - 49071 Beaucouzé cedex - France
(o- //\ v_/_ Angers-Nantes INRA Center: http://www.angers-nantes.inra.fr/ Bio++ dev team member: http://biopp.univ-montp2.fr/ ------------------------------------------------------------------------------ Using storage to extend the benefits of virtualization and iSCSI Virtualization increases hardware utilization and delivers a new level of agility. Learn what those decisions are and how to modernize your storage and backup environments for virtualization. http://www.accelacomm.com/jaw/sfnl/114/51434361/ _______________________________________________ qooxdoo-devel mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/qooxdoo-devel
