next up previous contents index
Next: [RegisterList] Up: Modifiers Previous: StdCall

Alias

The Alias modifier allows you to specify a different name for a procedure or function. This is mostly useful for referring to this procedure from assembly language constructs. As an example, consider the following program:

Program Aliases;

Procedure Printit; [Alias : 'DOIT'];

begin
  Writeln ('In Printit (alias : "DOIT")');
end;

begin
  asm
  call DOIT
  end;
end.

Remark: the specified alias is inserted straight into the assembly code, thus it is case sensitive.

The Alias modifier, combined with the Public modifier, make a powerful tool for making externally accessible object files.



Michael Van Canneyt
Thu Sep 10 14:02:43 CEST 1998