Dokumentaro de Gambaso
Compilation & Installation
Components
Documents
Indekso de Lingvo
Language Overviews
LeguMin
Lexicon
Registro

_unknown

GB_METHOD ( "_unknown" , "v" , MyClass_unknown , "." )

The _unknown method is called when the interpreter didn't find a method or property symbol in the class declaration.

This method takes a variable number of arguments, and returns a Variant value.

Inside the implementation function: The application class of the gb.qt.kde component is a good example of the use of this feature. When you do a DCOP call, the interpreter doesn't know if the application is loaded, if the method exists, what its parameters are, and so on. So the _unknown special method is welcome !

See also