[Gambas-user] Probable bug with "_unknown" method when used for properties
Benoît Minisini
gambas at ...1...
Sun Jul 3 20:09:54 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.
>
> Regards,
That solution has been completely implemented in revision #3916.
Please tell me if you encounter any problem.
Regards,
--
Benoît Minisini
More information about the User
mailing list