[Gambas-user] Accessor
Benoît Minisini
gambas at ...1...
Mon Dec 8 19:57:54 CET 2014
Le 08/12/2014 15:28, Fabien Bodard a écrit :
> I think i have used the term accessor in a bad way ... arf i've a so
> bad english :-/
>
> 2014-12-08 15:27 GMT+01:00 Fabien Bodard <gambas.fr at ...626...>:
>> What about let the class ME accessor the possibility to access to the
>> class private global value.
>>
>>
>> Private toto as integer
>>
>> Public sub _New (Toto as integer)
>>
>> me.toto = Toto
>>
>> end
>>
>>
>>
>> Actually i can't use the name Toto in the _New param because
>>
>> Toto = Toto only work on the local variable.
>>
>> --
>> Fabien Bodard
>
>
>
Don't use 'Toto' twice. This is the good solution, instead of letting
weird syntaxes break the language.
Regards,
--
Benoît Minisini
More information about the User
mailing list