Node:export, Next:exports, Previous:Exp, Up:Reference
(Under construction.)
export interface_name = (identifier, identifier, ...);
or
export interface_name = all;
Interface export for Extended Pascal modules.
all means to automatically export all identifiers declared in
the interface module.
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.
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.