[ < ] | [ > ] |  | [ << ] | [ Up ] | [ >> ] |  |  |  |  | [Top] | [Contents] | [Index] | [ ? ]

## 9.4 Addr

### Synopsis

    function Addr (const Foo): Pointer;

### Description

``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.

### Conforming to

``Addr'` is a Borland Pascal extension.

### Example

    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.

### See also

section 8.3 Operators.

This document was generated by Frank Heckenbach on May, 10 2002 using texi2html