[Gambas-user] Type of Variables possible?
Kadaitcha Man
nospam.nospam.nospam at ...626...
Tue Dec 29 14:12:12 CET 2009
Doriano Blengino wrote:
> Kadaitcha Man ha scritto:
>> 2009/12/29 Dr. Diesel <dr.diesel at ...626...>:
>>
>>
>>> just there seems no way to make it
>>> global and accessable across different modules/classes.
>>>
>>
>> HA! I had that same logical problem. There is no concept of global in
>> Gabas that matches any variation of VB's idea of global. This is the
>> fault of Microsoft. In the old days there was a concept of "global",
>> but then OO came along and Microsoft haven't been able to escape the
>> problem it created ever since.
>>
> Sorry Kadaitcha,
>
> you are confusing scope with visibility and naming, and all these
> things have nothing to do with OO. It seems that everybody in this
> list talks about OO misunderstanding its true meaning. There can be
> global
> variables in OO, why not? And they are not so bad, anyway - without
> global variables no programs could run...
No confusion. As an ex-VB programmer, I put it in the best way I could that
would be understood by the OP, alsa a VB programmer learning Gambas, so it
appears.
> "Global" is something during the life of the program, like file
> descriptors or static forms.
I hope you don't mind. I fell asleep and accidentally snipped everything
else.
More information about the User
mailing list