> > 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,

-- 
Benoît Minisini

------------------------------------------------------------------------------
All of the data generated in your IT infrastructure is seriously valuable.
Why? It contains a definitive record of application performance, security 
threats, fraudulent activity, and more. Splunk takes this data and makes 
sense of it. IT sense. And common sense.
http://p.sf.net/sfu/splunk-d2d-c2
_______________________________________________
Gambas-user mailing list
Gambas-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/gambas-user

Reply via email to