[Gambas-user] _Get special sub
Benoît Minisini
gambas at ...1...
Tue Feb 11 23:59:19 CET 2014
Le 11/02/2014 23:44, Fabien Bodard a écrit :
> Why can't we declare two _Get function in a class ?
>
> One in static the other in instance ?
>
>
>
> STATIC PUBLIC FUNCTION _Get[sValue as string] as MySelf
> hMySelf as new MySelf
>
> return MySelf
> END
>
>
> PUBLIC FUNCTION _Get[Index] as _MySubClass
> return aSubClass[index]
> END
>
> Logically i must be possible ...
>
> --
> Fabien Bodard
>
You can't, you have two methods with the same name.
--
Benoît Minisini
More information about the User
mailing list