link


link(objfile)
      

Load the object code file named objfile. If it is not found look for the script objfile.sn, compile it into machine code and load it. Objfile can be linked into a running program only once. It cannot be reloaded like an interpreted script.

Return the name of the compiled file.

Examples:


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

The above script can be compiled into machine code and loaded into the current program by,


link("hello")
      

Also see:

load
compile


Core Module Index | Contents