/sys$common/syshlp/TPUHELP.HLB  —  COMPILE
  COMPILE

     Converts the statements in a string, range, or buffer into an internal
     compiled format; optionally returns a program.  If you compile a buffer
     containing executable statements, DECTPU returns a program storing
     these executable statements.  If the buffer contains procedure
     definitions, DECTPU compiles the procedures and lists them in the
     procedure definition table so you can call them later (for example, by
     using them in other procedures or by using the EVE command TPU).

     To see the compiler messages, use SET (INFORMATIONAL, ON) before
     compiling.

  Syntax

     [program := ] COMPILE ({string | range | buffer})

  Parameters

     string     A string that is a DECTPU procedure or statement.

     range      A range containing DECTPU procedures or statements.

     buffer     A buffer containing DECTPU procedures or statements.

  Examples

     1.  user_program := COMPILE (main_buffer);

         Compiles the contents of the main buffer.

     2.  godown :== COMPILE ("MOVE_VERTICAL (+1)");

         Stores in the variable GODOWN the compiled statement.  You can then
         use that variable with the EXECUTE built-in to move the cursor down
         one line.

  Related topics

     EXECUTE   SET(INFORMATIONAL)
Close Help