load


load(script, @optional force_compile)
      

Load the object code file named script.oN. If it is not found look for the file script.sn, compile it to intermediate language and load it into the runtime system.

If force_compile is true, the file script.sn is compiled even if a previous version of the intermediate file exists.

Return the name of the compiled script file.

Examples:


// hello.sn
showln("hello, world")
      

The above script can be compiled into intermediate language representation and loaded into the current program by,


load("hello")
      

Also see:

reload
compile
link


Core Module Index | Contents