IonicWind Software

Aurora Compiler => General Discussion => Topic started by: Parker on November 25, 2005, 07:38:11 PM

Title: Global classes
Post by: Parker on November 25, 2005, 07:38:11 PM
Is it possible to have a global class, in which the methods are global, and in another module have an extern class that imports all of those methods?
Title: Re: Global classes
Post by: Ionic Wind Support Team on November 25, 2005, 09:06:24 PM
Class methods are all global by default.  Including a header file with the class definition automatically uses 'extern' if the methods are not found in the same file.  At least that is how it works here with my current version.

You can't call a class method without having an instance of that class, meaning there are no static methods yet.  But if I understood your question that is not what your talking about.

Paul.
Title: Re: Global classes
Post by: Parker on December 06, 2005, 02:46:53 PM
Is it possible to do this with virtual methods too (does the table get declared extern)?
Title: Re: Global classes
Post by: Ionic Wind Support Team on December 06, 2005, 02:52:39 PM
Currently the vtable will exist in any object file the class is instanced in.  A little bit of duplication, yes, but it works.