Include source code file

include file.l

Icludes content of the file.l in the code in place where the instruction is called. Code is included during the compilation therefore the file name has to be a constant word. If the file name does not contain an absolute path then the file is searched for in the current code directory and, if not found, in the directories of standard POOL libraries.

Example:

include "model1.l

if defined? "model1 [
  "t := (newt $model1 2)
  print (fn 5) @ :t
  print (name? "var) @ :t
]

Output:

10
True

See also:

Table of Content