[Gambas-user] alxay problem with class and modules

Benoit Minisini gambas at ...1...
Mon Feb 16 16:48:14 CET 2004


On Monday 16 February 2004 08:29, Coquet Olivier wrote:
> here is my code:
>
> ' Gambas class file
> ' ==================
> PUBLIC SUB test()
>
>   PRINT "test"
>
>
> END
>
> ' Gambas module file
> ' ==================
>
> PUBLIC modu AS pop
>
> PUBLIC SUB Main()
>   modu = NEW pop
>   modu.test
>
> END
>
> when i run this, this say me than pop is a static class ???????
>
> sorry but i don't undestant why, somebody can clearly explain me ???
>
> regards
> olivier
>

If I can remember what I did ;-) a class without any dynamic variable is 
static and cannot be instanciated (what for ?)

Regards,

-- 
Benoit Minisini
mailto:gambas at ...1...





More information about the User mailing list