[ < ] | [ > ] | [ << ] | [ Up ] | [ >> ] | [Top] | [Contents] | [Index] | [ ? ] |
function Addr (const Foo): Pointer; |
`Addr' returns the address of its argument. It is equivalent to the address operator and provided for compatibility with Borland Pascal which in turn implements it for backward-compatibility with Turbo Pascal.
`Addr' is a Borland Pascal extension.
program AddrDemo; var Foo: ^Integer; Bar: Integer; begin Foo := Addr (Bar); { Let `Foo' point to `Bar'. } Bar := 17; Foo^ := 42; { Change the value of `Bar' to 42 } WriteLn (Bar) end. |
section 8.3 Operators.