Mod /
Extern
Search:  


Table Of Contents (show)

  1. 1. Extern
    1. 1.1 Auto-Generation

1.  Extern

The extern command provides forward declarations for procs, commands and aliases by defining expected parameters (and optionally type information). See the Weld extern documenation for a detailed description. When Weld is not being used Mod implements it's own version of extern, which is used for several, other purposes. These include:

  • a mechanism for demand loading code via Uses
  • command completion as implemented in Ted
  • simplified command alias declarations
  • and future inlined-C

1.1  Auto-Generation

An advantage of extern is that it can be automatically generated. Thus there is no need for hand writing as you would in C. The interface component of Mod supports generation of externs, via Ted, or the command-line.

© 2008 Peter MacDonald

Page last modified on January 07, 2008, at 05:45 PM