[Gambas-user] Porblem with classes

Benoit Minisini gambas at ...2...
Sun Aug 31 21:29:31 CEST 2003


Le Dimanche 31 Août 2003 11:41, Marco Bauer a écrit :
> Hi everyone,
>
> I'm somewhat new to OOP and right in my first project, which makes some use
> of classes I encountered a problem with a call to a class which is directed
> to a second class instanciated by the first one. The program exits with
> 'The program has returned the value: 1'.

THIS is a bug ! Please send me the project that raises this error.

> So I tried to solve this by creating a simple example of this process and I
> encountered yet another problem. 'Cause gambas tells me that class
> 'CKlasse1' is static. What does that mean? I didn't declare it as static!
> Can somebody please give me hint what's wrong?

It didn't tell you that "CKlasse1" is static, but that "CKlasse2" is static.
CKlasse2 has no global variables, so gambas assumes it is stupid to 
instanciate it. I admit that the error message is not very clear !

>
> Gruss
> Marco Bauer

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




More information about the User mailing list