[Gambas-user] Accessor

Fabien Bodard gambas.fr at ...626...
Mon Dec 8 22:01:41 CET 2014


2014-12-08 19:57 GMT+01:00 Benoît Minisini <gambas at ...1...>:
> 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.

:-P

>
> Regards,
>
> --
> Benoît Minisini
>
> ------------------------------------------------------------------------------
> Download BIRT iHub F-Type - The Free Enterprise-Grade BIRT Server
> from Actuate! Instantly Supercharge Your Business Reports and Dashboards
> with Interactivity, Sharing, Native Excel Exports, App Integration & more
> Get technology previously reserved for billion-dollar corporations, FREE
> http://pubads.g.doubleclick.net/gampad/clk?id=164703151&iu=/4140/ostg.clktrk
> _______________________________________________
> Gambas-user mailing list
> Gambas-user at lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/gambas-user



-- 
Fabien Bodard




More information about the User mailing list