[ < ] | [ > ] | [ << ] | [ Up ] | [ >> ] | [Top] | [Contents] | [Index] | [ ? ] |
The keyword `object' is used to declare a new object type:
type foo = object a: Integer; constructor Init; procedure Bar (x: Integer); virtual; end; |
(For a longer example, see section 8.8 Object-Orientated Programming.)
GNU Pascal follows the Borland Pascal 7.0 object model.
ISO Pascal does not support Object-orientated programming. There is an ANSI draft for an "Object Pascal" language which is not yet supported by GPC, but planned. The Delphi language, also called "Object Pascal" by Borland, is currently not supported by GPC either.
section 8.8 Object-Orientated Programming, section 9.222 record.