logo To Foot
© J R Stockton, ≥ 2001-08-01

Pascal and Delphi Words.

No-Frame * Framed Index * Frame This
Links within this site :-

Pascal and Delphi Words

This shows, very briefly, ways in which each Pascal or Delphi reserved word or directive is used; it cannot act as a tutorial in their use, but may serve as a reminder of words and usage. Where the entry is "*", I have as yet thought of nothing short and useful.

Notes :-

Reserved Words
InReserved Word Example of usage
BP7and BV := BV1 and BV2 ; J := K and L
BP7array var X : array [type] of type
D3as
BP7asm asm assembler code end
BP7begin begin statements end
BP7casecase N of 1: statement; 2: statement; else statement end
D3class
BP7const const X=3; const Y: byte=4
BP7constructorconstructor Method (<parameter list>)
BP7destructordestructor Method
D3dispinterface
BP7divI := J div K
BP7dosee for, while, with
BP7downto for J := 5 downto 1 do statement
BP7elsesee case, if
BP7end see asm, begin, case, object, record
D3except
BP7exports*
BP7file var F : file ; G : file of type
D3finalization
D3finally
BP7for for J := 1 to 5 do statement
BP7functionfunction Q(const C:char; J:shortint) : char
BP7gotogoto L
BP7ifif BV then statement else statement
BP7implementation*
BP7in BV := element in set
BP7inherited*
D3initialization
BP7inlineinline($9C) ; inline($58/$F7/$E8)
BP7interface*
D3is
BP7labellabel L
BP7librarylibrary DLLname
BP7modI := J mod K
BP7nilP := nil
BP7notBV := not BV1
BP7objecttype Tob = object (Tx) W:word; B,C:byte end
BP7ofsee array, case, file, set
BP7or BV := BV1 or BV2 ; J := K or L
D3out
BP7packed var X : packed record ... end
BP7procedureprocedure A(var B:byte; const C:char; J:shortint)
BP7programprogram ProgName
D3property
D3raise
BP7record type Tr = record W:word; B,C:byte end
BP7repeat repeat statements until BV
D3resourcestring
BP7settype Ts = set of 'A'..'Z'
BP7shlJ := K shl 3
BP7shrJ := K shr 3
BP7string var S1:string; S2: string[33]
D3stringresource
BP7thensee if
D3threadvar
BP7to for J := 1 to 5 do statement
D3try
BP7type type Tx = 1..7 ; Ty = (red, green, blue)
BP7unitunit UnitName
BP7until repeat statements until BV
BP7usesuses Dos, Crt
BP7varvar J : integer
BP7while while BV do statement
BP7withwith P^ do statement
BP7xor BV := BV1 xor BV2 ; J := K xor L

Note that names such as byte, real, ... (see Pascal / Delphi / + Types) and those of the standard procedures & functions are not reserved words; but it is usually bad practice to redefine them.

Directives
InDirective Example of usage
BP7absolutevar Tix : word absolute $40:$6C ; Tox : byte absolute Tix
D3abstract
BP7assemblerprocedure directive
D3automated
D3cdecl
D6deprecated const S = 'V' deprecated ;
D3default
D3dispid
D3dynamic
BP7exportprocedure directive
BP7externalprocedure directive
BP7farprocedure directive
BP7forwardprocedure directive
BP7indexused in an exports clause
BP7interrupt procedure directive (not D3)
D3message
D3name
BP7nearprocedure directive
D3nodefault
D3override
D3pascal
BP7privateused in objects
D3protected
BP7publicused in objects
D3published
D3read
D3readonly
D3register
BP7residentused in an exports clause
D3safecall
D3stdcall
D3stored
BP7virtualprocedure directive
D3write
D3writeonly

Directives can, but should not, be redefined.

Keywords
InKeyword Example of usage
D6
Home Page
Mail: no HTML
© Dr J R Stockton, near London, UK.
All Rights Reserved.
These pages are tested mainly with MS IE 7 and Firefox 3.0 and W3's Tidy.
This site, http://www.merlyn.demon.co.uk/, is maintained by me.
Head.