Just to add to caveat and Benoit's answers.

Static, when applied to variables, refers to the "storage class" (or  
more properly "storage mode") of the variable.  Whereas "public" and  
"private" refer to the scope or accessibility of the variable.  It is  
important not to confuse these aspects.

When applied to methods it has an entirely different meaning.  In  
effect it is a "compiler" directive that allows the method to be  
addressed directly rather than that address being resolved at runtime.  
  Thus (in OO theory) a static method is not resolved by "virtual  
dispatch" as it is not subject to polymorphism or overriding in  
descendant classes.  (I am limited at the moment to a %$#$%# MacBook  
so I cant tell how far this theory is adhered to by gambas.)

Finally, there is a third completely different usage of the keyword  
Static in gambas.  That is, "Create Static", which is applied to  
classes.  Its' meaning in that context is entirely different again,  
and best explained by the help page.

hth
Bruce


------------------------------------------------------------------------------
Ridiculously easy VDI. With Citrix VDI-in-a-Box, you don't need a complex
infrastructure or vast IT resources to deliver seamless, secure access to
virtual desktops. With this all-in-one solution, easily deploy virtual 
desktops for less than the cost of PCs and save 60% on VDI infrastructure 
costs. Try it free! http://p.sf.net/sfu/Citrix-VDIinabox
_______________________________________________
Gambas-user mailing list
Gambas-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/gambas-user

Reply via email to