Originale-mail to me for new edition

 

Reserved words

 

The following reserved words cannot be redefined or used as identifiers.

 

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

inline

interface

is

label

library

mod

nil

not

object

of

or

out

packed

procedure

program

property

raise

record

repeat

resourcestring

set

shl

shr

string

then

threadvar

to

try

type

unit

until

uses

var

while

with

xor

 

 

 

 

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.

 

Topic groups

 

See also

Character strings

Directives

Fundamental syntactic elements: Overview

Identifiers

Labels

Numerals

Special symbols

 

Reserved words: Detail

 

and

See also

Boolean operators

Boolean short-circuit evaluation (compiler directive)

Logical (bitwise) operators

Top  Bottom

array

See also

Dynamic arrays

Open array parameters

Static arrays

Variant open array parameters

Top  Bottom

as

See also

Class operators

Interface querying

The as operator

Top  Bottom

asm

See also

Assembler procedures and functions

The asm statement

Top  Bottom

begin

See also

Compound statements

Function declarations

Procedure declarations

The block

Top  Bottom

case

See also

Case statements

Variant parts in records

Top  Bottom

class

See also

About class types

Class methods

Class-reference types

Forward declarations and mutually dependent classes

Top  Bottom

const

See also

About typed constants

const (see MS MIDL Reference)

Constant parameters

Parameter semantics: Overview

Parameters: Overview

True constants

Variant open array parameters

Top  Bottom

constructor

See also

Constructors

Top  Bottom

destructor

See also

Destructors

Top  Bottom

dispinterface

See also

Dispatch interface types (Windows only)

dispinterface (see MS MIDL Reference)

Top  Bottom

div

See also

Arithmetic operators

Top  Bottom

do

See also

For statements

Try...except statements

While statements

With statements

Top  Bottom

downto

See also

For statements

Top  Bottom

else

See also

Case statements

ELSE (compiler directive)

If statements

Try...except statements

Top  Bottom

end

See also

About class types

About records

Assembler procedures and functions

Compound statements

Forward declarations and mutually dependent classes

Function declarations

Interface types: Overview

Object types

Package declarations and source files

Procedure declarations

The asm statement

The block

Unit structure and syntax: Overview

Top  Bottom

except

See also

Try...except statements

Top  Bottom

exports

See also

The exports clause

Writing dynamically loadable libraries

Top  Bottom

file

See also

File mode constants (see VCL Reference)

File open mode constants (see VCL Reference)

File types

Untyped files

Top  Bottom

finalization

See also

The finalization section

Top  Bottom

finally

See also

Try...finally statements

Top  Bottom

for

See also

For statements

Top  Bottom

function

See also

Function declarations

Method resolution clause

Procedural types: Overview

Top  Bottom

goto

See also

Goto statements

Top  Bottom

if

See also

ENDIF directive

IF directive

If statements

Top  Bottom

implementation

See also

The implementation section

Top  Bottom

in

See also

in (see MIDL Reference)

Package declarations and source files

Set operators

The syntax of a uses clause

Top  Bottom

inherited

See also

Inherited

Top  Bottom

initialization

See also

Initialization (see Writing a Recognizer in MS Pen API)

Initialization (see DDE Management Library in MS Win32)

Initialization (see A Sample Pen Application in MS Pen API)

The initialization section

Top  Bottom

inline

See also

The asm statement

Top  Bottom

interface

See also

Forward declarations

interface (see MS MIDL Reference)

Interface types: Overview

The interface section

Top  Bottom

is

See also

Class operators

The is operator

Top  Bottom

label

See also

Goto statements

Top  Bottom

library

See also

Declarations

library (see MS MIDL Reference)

Writing dynamically loadable libraries

Top  Bottom

mod

See also

Arithmetic operators

Top  Bottom

nil

See also

Overview of pointers

Top  Bottom

not

See also

Boolean operators

Logical (bitwise) operators

Top  Bottom

object

See also

object (see MS MIDL Reference)

Object types

Procedural types: Overview

Top  Bottom

of

See also

Case statements

Class methods

Dynamic arrays

File types

Open array parameters

Procedural types: Overview

Sets

Static arrays

Variant open array parameters

Variant parts in records

Top  Bottom

or

See also

Boolean operators

Boolean short-circuit evaluation (compiler directive)

Logical (bitwise) operators

Top  Bottom

out

See also

out (see MS MIDL Reference)

Out parameters

Parameter semantics: Overview

Parameters: Overview

Top  Bottom

packed

See also

Structured types

Top  Bottom

procedure

See also

Method resolution clause

Procedural types: Overview

Procedure declarations

Top  Bottom

program

See also

The program heading

Top  Bottom

property

See also

Properties

Top  Bottom

raise

See also

Raising and handling exceptions

Re-raising exceptions

Top  Bottom

record

See also

About records

record (see MS Multimedia API Reference)

Top  Bottom

repeat

See also

Repeat statements

Top  Bottom

resourcestring

See also

Resource strings

Top  Bottom

set

See also

Sets

set (see MS Multimedia API Reference)

Top  Bottom

shl

See also

Logical (bitwise) operators

Top  Bottom

shr

See also

Logical (bitwise) operators

Top  Bottom

string

See also

About strings types

Short strings

String (see File Installation in MS Win32)

string (see MS MIDL Reference)

Top  Bottom

then

See also

If statements

Top  Bottom

threadvar

See also

Thread-local variables

Top  Bottom

to

See also

For statements

Top  Bottom

try

See also

Try...except statements

Try...finally statements

Top  Bottom

type

See also

Declaring types

String (see Event Logging in MS Win32)

Type identity

Top  Bottom

unit

See also

Adding existing forms and units to a project (Working with projects)

DENYPACKAGEUNIT directive

Form files (Working with projects)

Getting project path and unit information (Working with projects)

Naming unit and project source code files (Working with projects)

Private unit (NOINCLUDE compiler directive)

The unit heading

Unit files (Working with projects)

Viewing forms and units (Working with projects)

Top  Bottom

until

See also

Repeat statements

Top  Bottom

uses

See also

The syntax of a uses clause

Top  Bottom

var

See also

Declaring variables

Parameter semantics: Overview

Parameters: Overview

Value and variable parameters

Var (see File Installation in MS Win32)

Var-string checking (compiler directive)

Top  Bottom

while

See also

While statements

Top  Bottom

with

See also

With statements

Top  Bottom

xor

See also

Boolean operators

Logical (bitwise) operators

Top  Bottom

 

Reserved words and directives: Detail

 

private

See also

Private, protected, and public members

Visibility of class members

Top  Bottom

protected

See also

Private, protected, and public members

TTextAttributes.Protected (see VCL Reference)

Visibility of class members

Top  Bottom

public

See also

Private, protected, and public members

public (see MS MIDL Reference)

Visibility of class members

Top  Bottom

published

See also

Published members

Visibility of class members

Top  Bottom

automated

See also

Automated members

Visibility of class members

Top  Bottom

at

See also

Raising and handling exceptions

Top  Bottom

on

See also

Try...except statements

Top  Bottom

 

译文

 

保留字

 

下面列出Object Pascal中的全部保留字。保留字不能被重定义,也不能作为标识符使用。

 

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                inline                           interface                      is

label                            library                          mod                             nil

not                                object                          of                                  or

out                                packed                        procedure                   program

property                       raise                            record                          repeat

resourcestring           set                                shl                                shr

string                           then                             threadvar                    to

try                                 type                              unit                               until

uses                            var                                while                            with

xor

 

除上面列出的保留字外,privateprotectedpublicpublishedautomated等在对象类型声明中出现的单词/单字,其行为也可保留字一样,但它们被另视为指示字。此外,aton也具有特殊含义。

 

主题组

 

相关主题

字符串

指示字

基本语法元素:概述

标识符

标号

数字

特殊符号

 

 

编者注

考虑到当前主题内容以链接为主,因此没有必要进行翻译,更何况将保留字翻译成中文将使内容变得不知所云。