[Gambas-user] couple of questions...

Eilert eilert-sprachen at ...221...
Tue Jun 21 08:15:06 CEST 2005


Hi Tom,

Tom Bradley schrieb:
> First what is the differenc between a PROCEDURE and a SUB?

None, as far as I know. SUBs are called Procedures in Basic, so it's 
just a function with a void return value that can be called like a 
command. Just like procedures in Pascal.


> 
> Second what is a module and how does it compare/contrast with a class?


I only have a faint idea of the differences. The only thing I know is 
that a module is just Basic code separated in its own file, like an 
include file. I found that in Gambas, the declaration of module-global 
variables is different from that within classes. But I have no idea why :-)

Rolf





More information about the User mailing list