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

9.169 near

Synopsis

Description

The `near' directive can be appended to a procedure or function heading but is ignored by GPC. It is there for Borland compatibility, only. (Since the GNU compilers provide a flat memory model, the distinction between `near' and `near' pointers is void.)

Conforming to

`near' is a Borland Pascal extension.

Example

 
program NearDemo;

var p: procedure;

{$W-} { Don't warn about the uselessness of `near' }

procedure Foo; near; { `near' has no effect in GPC } begin WriteLn ('Foo') end;

begin p := Foo; { Works, despite the `near'. } p end.

See also

section 9.87 far.



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