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 ------------------------------------------------------------------------------ Android apps run on BlackBerry 10 Introducing the new BlackBerry 10.2.1 Runtime for Android apps. Now with support for Jelly Bean, Bluetooth, Mapview and more. Get your Android app in front of a whole new audience. Start now. http://pubads.g.doubleclick.net/gampad/clk?id=124407151&iu=/4140/ostg.clktrk _______________________________________________ Gambas-user mailing list Gambas-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/gambas-user