This project is read-only.


The include keyword allows the source file to be splitted across several files. it allows commonly used types to be extracted into separate files for later reuse.

You can reference a file to be included like this:

include "" 

Because the include statement is resolved at compile time, expressions are not allowed. You should really specify a file name.

This works just as if the included file content has been pasted instead of the include keyword. This has two important consequences:
  • All variables will be in the same scope, and types can inherit from included ones.
  • The use keyword used the root file also affects included files.

The included file can, in it's turn, include other sub-files.

Next article: Editor

Last edited Mar 17, 2011 at 11:46 PM by impworks, version 3


No comments yet.