Menu

#22 #include breaks Class inheritance

open
nobody
None
5
2008-06-22
2008-06-22
Yoel
No

In order for inheritance to work, it seems to require that the base class(es), derived class(es), and any code using the derived class(es) must all be in the same .prg file. Trying to #include it will work for a base class, but any derived class will not be able to find functions from its parent.

I hope that makes sense. If you have trouble reproducing it, pm me on toolkitzone (username cuthalion).

I can work around this if I must, but it seems arbitrary and inconvenient. If this is fixable, I for one would appreciate it very much.

Thanks!

Discussion


Log in to post a comment.

Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.