Language Elements and Reference:xpplrm

Declarations and Statements Foundation

This chapter describes the various declarations used to declare identifiers in an Xbase++ program for the compiler. Functions, procedures and variables are specified using identifiers. Declarations for classes, methods and member variables are discussed in the chapter "Object-Oriented Programming".

After declarations the description of statements follows, which control the program flow within procedures and functions.

Declaration of functions and procedures

Visibility

Arguments and parameters

Declaration of variables

Visibility and lifetime

Lexical memory variables - code example

Dynamic memory variables - code example

Field variables - code example

Control structures

Branching

Loops

Exceptions and error handling

Feedback

If you see anything in the documentation that is not correct, does not match your experience with the particular feature or requires further clarification, please use this form to report a documentation issue.