| Prev | Next | Start of Chapter | End of Chapter | Contents | Glossary | Index | Comments | (12 out of 25)

begin-end

You can specify a block of two or more statements wherever a single statement can appear by enclosing the statements in a begin-end statement. This construction is also called a compound statement or a begin-end block. The syntax is:

The body of a procedure is enclosed in a begin-end block. Such blocks can be nested to arbitrary depth. Any begin-end blocks can have an associated error handler, as described under on error.

A begin-end statement must end with a semicolon whenever a single statement in that location would do so, unless it is the value of the then clause of an if-then statement. For further information, see if-then.

| Prev | Next | Start of Chapter | End of Chapter | Contents | Glossary | Index | Comments | (12 out of 25)

Copyright © 1997 Gensym Corporation, Inc.