Reusing blocks

One of the most powerful features of the <block> statement is the way it allows for the reuse of Macro Language code.

There are several elements designed to work with <block> to make reusing code easier. These elements are described in more detail in the following sections.

  • Import an entire library with the <import> operation. See Importing a Library for more information.
  • Insert a single block with the <insert> operation. <insert> allows you to access (but not modify) the encapsulating block's variables. See Inserting a block for more information.
    Note: Related operations are <expand> and <call>. <expand> inserts a block and also allows you to access and modify variables from the outer scope, while <call> inserts a block but does not allow access to the encapsulating block's variables.
  • Store a collection of blocks in a <library> operation. See Storing blocks in libraries for more information.
  • <call>