[Gambas-user] Gambas bug?

Fabián Flores Vadell fabianfloresvadell at ...626...
Fri Feb 10 22:18:21 CET 2012


2012/2/10 Emil Lenngren <emil.lenngren at ...626...>

> Did the Object solution not solve your problem? It should work in all cases
> when the name of the function/property is the same at all calls/property
> readings.
>

II want to write just one method that allow me to call whatever method I
could need from one collaborator (the array in this case). That is why I
think that this approach will not work.


> If you use different symbol names each time, maybe you can use something
> like this:
> Try
>  Return Object.GetProperty(object, name)
> Catch
>  Return Object.Call(object, name)
>

To check or to catch. That is the question. :)


> But you probably should try another code design if you really need this
> kind of code ;)
>
> /Emil
>

Humm. I want to avoid the need to write a wrapper for each method that I
need expose from the "helper" class. The easy way is to move the fingers
faster. But eventually that will become in a disease. (the issue of the
carpal tunnel)  :)

But, if you knows a better way to do that, please let me know.

Thank you.

Fabián



More information about the User mailing list