Em Tue, 15 Apr 2014 12:55:51 +0200 Tobias Boege <tabo...@gmail.com> escreveu:
> And finally let me tell you something about extending classes: it gets > especially cool when you call your extending class like the extended > class. Above, you would not call your class VariantArray but > Variant[]. [ At present, you have to create .src/Variant[].class > outside of the IDE in your project because the IDE forbids use of > brackets in class names. However, the interpreter doesn't seem to > have any problems with that. ] > > That way, you are overriding the Variant[] class in the interpreter's > global symbol table, using inheritance, i.e. you extend it. You can > add features to Variant[] which are immediately available to all > users of the Variant[] class without having to change any code. > That's explained in the docs as well[1]. Strangely this extension trick doesn't work with an array of a non-native class. The interpreter doesn't complain, but no events or methods defined in the extended class are raised or called. Could you please confirm this? Do you think this is a bug? If not, do you have an explanation for this strange behavior? -- ,= ,-_-. =. Bruno Félix Rezende Ribeiro (oitofelix) [0x28D618AF] ((_/)o o(\_)) There is no system but GNU; `-'(. .)`-' GNU Linux-Libre is one of its official kernels; \_/ All software must be free as in freedom;
signature.asc
Description: PGP signature
------------------------------------------------------------------------------ Learn Graph Databases - Download FREE O'Reilly Book "Graph Databases" is the definitive new guide to graph databases and their applications. Written by three acclaimed leaders in the field, this first edition is now available. Download your free book today! http://p.sf.net/sfu/NeoTech
_______________________________________________ Gambas-user mailing list Gambas-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/gambas-user