[Contents]
[Prev] [Next] [Limbo Basics] [Limbo Programming] [Language Definition]

The include Statement

As mentioned earlier, in Limbo include is a keyword, not a preprocessor directive. The include statement specifies the module interface file (.m) that you want to include into your program. This is required before you can load or use any of that module's data or function members.

The file name following the include keyword is always enclosed in double quotes (i.e., "sys.m"). If an explicit path is not given for the file, Limbo searches the current working directory. If that fails, it searches directories specified with the -I option for the Limbo compiler, if any. Then, if that fails, it searches the <inferno_root>/module directory.



[Contents]
[Prev] [Next] [Limbo Basics] [Limbo Programming] [Language Definition]

Copyright © 1998, Lucent Technologies, Inc. All rights reserved.