Back Previous Next


Linguist basic package - import

Syntax:

   import {variable declaration}
      [and {variable declaration} ...]

Keyword handler:

   net.eclecity.linguist.basic.keyword.BKImport.class

Runtime handler(s):

   net.eclecity.linguist.handler.LHImport.class

Function:

This command declares variables that are imported from the script that launched this one (see run). The variable list must match in number and type, though the names need not be the same as those exported by the caller. The same variables can be imported by any number of scripts and do not have to be in the same order as long as the exports individually match. Any variable type from any package known to the compiler can be used.

The imported variables can be used in exactly the same way as if they were declared normally, including exporting them to yet another script. Changes are immediately visible to any other script having access to the same variable.

Example(s):

   import variable Code
      and buffer Message
      and window Frame


Back Previous Next