[Gambas-user] Static Classes and Modules

John Leake jleake at ...3375...
Sun Sep 21 00:36:24 CEST 2014


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 stack and is not dynamically created each time the sub or
func is called).

On 20/09/14 23:00, B Bruen wrote:
> 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.
> 
> regards
> Bruce
> 
> p.s. I have had a bit of a look around the web and this concept of "static" = "non-instantiable" seems to be an idea of a certain North American software company whose products are of limited appeal to the majority of Linux users :-)  I might have to see if my old Bertram Meyer text book is in the attic as I am getting more and more sure that "static" means allocated at class level rather than at instance level and nothing more.
> 




More information about the User mailing list