[Gambas-user] Probable bug with "_unknown" method when used for properties

Benoît Minisini gambas at ...1...
Sun Jul 3 04:07:49 CEST 2011

> > Benoit,
> > 
> >     Done!  Here you go!
> > 
> > gwalborn
> OK, the problem is worse than I thought. It is a deep design error in
> Gambas, that prevent _unknown from dealing with properties in all possible
> cases.
> I will search again for a solution, but I am not optimistic! :-/
> Regards,

Here is the solution I propose:

A new special method, named "_property" must be implemented if you want to 
handle unknown properties.

This function takes no argument, and must return a boolean. The name of the 
unknown symbol is stored in Param.Name, and the function must return if the 
symbol is actually a property or not (i.e. a method).

If _property is not implemented, all unknown symbols are methods.


Benoît Minisini

More information about the User mailing list