Re: [Gambas-user] Static Classes and Modules

2014-09-20 Thread John Leake
The actual name 'Static Class Method or Static Class Variable' and the name 'Class Method or Class Variable' are exactly the same thing. They are directly synonymous with a static variable within a subroutine or function that retains its value between calls to that sub or func (ie it is not on the

Re: [Gambas-user] Static Classes and Modules

2014-09-20 Thread B Bruen
Another thing just popped into mind: Consider an inheritance chain where at some level a class only defines static features (but inherits dynamic features from ancestral classes). If "only static feautures" presumed "non-instantiable class" then this would break subsequent inheritance. regard

Re: [Gambas-user] Static Classes and Modules

2014-09-20 Thread John Leake
Hi All, It is clear that many people have a huge investment in the status-qua. Just update the docs and say what can and cannot be compared (like the address of the object in this case). Then at least users are well informed before they code and rely on what they discover through experimentation.

Re: [Gambas-user] Static Classes and Modules

2014-09-20 Thread John Leake
Hi, Sorry if I have mislead you wrt singletons. I am doing some experiments with singletons not using modules as singletons. I have a problem with consistency. The docs say one thing whereas in reality something different is happening. A static class/module either should or should not be creata

Re: [Gambas-user] Static Classes and Modules

2014-09-20 Thread B Bruen
On Sat, 20 Sep 2014 20:24:46 +0200 Benoît Minisini wrote: > Le 20/09/2014 11:55, John Leake a écrit : > > Thanks Tobi, > >>> So could someone tell me if a class without any dynamic variable ie a > >>> static class, can or cannot be created ? > >>> > >> > >> Or you can try it out. > >> > >> What I

Re: [Gambas-user] Static Classes and Modules

2014-09-20 Thread Tobias Boege
On Sun, 21 Sep 2014, B Bruen wrote: > On Sat, 20 Sep 2014 10:55:06 +0100 > John Leake wrote: > > > Thanks Tobi, > > >> So could someone tell me if a class without any dynamic variable ie a > > >> static class, can or cannot be created ? > > >> > > > > > > Or you can try it out. > > > > > > What

Re: [Gambas-user] Static Classes and Modules

2014-09-20 Thread B Bruen
On Sat, 20 Sep 2014 10:55:06 +0100 John Leake wrote: > Thanks Tobi, > >> So could someone tell me if a class without any dynamic variable ie a > >> static class, can or cannot be created ? > >> > > > > Or you can try it out. > > > > What I did was creating a module and making objects from it wi

Re: [Gambas-user] Static Classes and Modules

2014-09-20 Thread Benoît Minisini
Le 20/09/2014 11:55, John Leake a écrit : > Thanks Tobi, >>> So could someone tell me if a class without any dynamic variable ie a >>> static class, can or cannot be created ? >>> >> >> Or you can try it out. >> >> What I did was creating a module and making objects from it with New -- it >> works,

Re: [Gambas-user] Static Classes and Modules

2014-09-20 Thread John Leake
Thanks Tobi, >> So could someone tell me if a class without any dynamic variable ie a >> static class, can or cannot be created ? >> > > Or you can try it out. > > What I did was creating a module and making objects from it with New -- it > works, but those objects are even more limited than I ha

Re: [Gambas-user] Static Classes and Modules

2014-09-20 Thread Tobias Boege
On Sat, 20 Sep 2014, John Leake wrote: > Hi All, > Could someone please clarify the characteristics of a static class. > > My understanding of Static Classes from other languages is: > > They cannot be created or more precisely no more than one instance of > the class can exist. This means that i

[Gambas-user] Static Classes and Modules

2014-09-20 Thread John Leake
Hi All, Could someone please clarify the characteristics of a static class. My understanding of Static Classes from other languages is: They cannot be created or more precisely no more than one instance of the class can exist. This means that if a process alters the state of the class then that c