Re: [qooxdoo-devel] How to check/assert a given Class of a function parameter

2011-09-07 Thread Sylvain Gaillard
Thank you for pointing me the debug things. It will be helpfull not to overload client with unnecessary check on released apps. Best, Sylvain Le 07/09/2011 10:11, Seldaiendil D. Flourite a écrit : > Of course you have it, it is at qx.core.Assert.assertInstance(var > |value|, Class

Re: [qooxdoo-devel] How to check/assert a given Class of a function parameter

2011-09-07 Thread Seldaiendil D. Flourite
Don't worry, happens to me too all the time ;) 2011/9/7 Sylvain Gaillard > Hi again and sorry my (stupid) question ... I've taken a deepest look at > qx.core.Assert and found assertInstance ... next time I will open my > eyes when reading the docs ;-) > Best, > Sylvain > > Le 07/09/2011 09:40,

Re: [qooxdoo-devel] How to check/assert a given Class of a function parameter

2011-09-07 Thread Sylvain Gaillard
Hi again and sorry my (stupid) question ... I've taken a deepest look at qx.core.Assert and found assertInstance ... next time I will open my eyes when reading the docs ;-) Best, Sylvain Le 07/09/2011 09:40, Sylvain Gaillard a écrit : > Hi all of you, > I'm writing some classes dealing with biol

Re: [qooxdoo-devel] How to check/assert a given Class of a function parameter

2011-09-07 Thread Seldaiendil D. Flourite
Of course you have it, it is at qx.core.Assert.assertInstance(var value, Class clazz, String msg) You can write methods like: qx.Class.define('myapp.MyClass', {

[qooxdoo-devel] How to check/assert a given Class of a function parameter

2011-09-07 Thread Sylvain Gaillard
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