[Gambas-user] A few questions.
Benoit Minisini
gambas at ...1...
Wed Dec 29 15:48:07 CET 2004
On Sunday 26 December 2004 21:46, Oliver Stieber wrote:
> Hi, I noticed all the classes stuff in Gambas and have
> tried to write a simple class browser for
> debugging/watching variables.
>
> The problem is every time I try
> classes["myclass"]["symbol"] I get a not an array
> error,
> and if I try classes["myclass"]._get("symbol") then
> Gambas dies.
>
> Getting a list of symbols works fine though
> for each foo in classes["myclass"].symbols ...
>
There is still one problem for your class browser. Class["x"]["y"].Signature
will always return a null string. So you can't know what parameters a method
or an event need.
Two solutions:
1) Wait to see if I write a signature decoder inside the interpreter, because
the string signature is encoded by the interpreter when the class is loaded.
2) Use the *.info file, the same way the help browser does in Gambas. But you
can only browse native classes in components with that.
Regards,
--
Benoit Minisini
mailto:gambas at ...1...
More information about the User
mailing list