Node:export, Next:exports, Previous:Exp, Up:Reference

### export

(Under construction.)

#### Synopsis

    export interface_name = (identifier, identifier, ...);

or

    export interface_name = all;

#### Description

Interface export for Extended Pascal modules.

`all` means to automatically export all identifiers declared in the interface module.

#### Conforming to

`export` is an ISO 10206 Extended Pascal extension. It also exists in Borland Pascal, but with a different meaning, not (yet) supported by GPC.

`export all` is a GNU Pascal extension.

#### Example

    program ExportDemo;

    import AllInterface in 'somemodule.pas';

    begin
      Bar (a);
      WriteLn (b)
    end.

    module SomeModule interface;

    export
      SomeInterface = (a);
      AllInterface = all;  { Same as `AllInterface = (a, b, Bar);' }

    var
      a, b: Integer;

    procedure Bar (i: Integer);

    end.

    module SomeModule implementation;

    procedure Bar (i: Integer);
    begin
      b := a
    end;

    to begin do
      a := 42;

    end.

#### See also

Keywords, Modules.