1. Computing & Technology

Discuss in my forum

Reserved Word

By , About.com Guide

Definition: A special word reserved by a programming language or by a program.

You are not allowed to use reserved words as variable names.

A partial list of Delphi reserved words:

  • and
  • array
  • as
  • asm
  • begin
  • case
  • class
  • const
  • constructor
  • destructor
  • dispinterface
  • div
  • do
  • downto
  • else
  • end
  • except
  • exports
  • file
  • finalization
  • finally
  • for
  • function
  • goto
  • if
  • implementation
  • in
  • inherited
  • initialization
  • interface
  • in
  • is
  • library
  • nil
  • not
  • object
  • of
  • or
  • out
  • packed
  • procedure
  • program
  • property
  • raise
  • record
  • repeat
  • resourcestring
  • set
  • string
  • then
  • to
  • try
  • type
  • unit
  • until
  • uses
  • var
  • while
  • with
In addition to the words above, private, protected, public, published, and automated act as reserved words within object type declarations, but are otherwise treated as directives. The words at and on also have special meanings.
Also Known As: Keyword

©2012 About.com. All rights reserved.

A part of The New York Times Company.