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

return

A return statement tells G2 to exit the procedure and return values to the calling procedure. This is required when the procedure returns values, since at that time the values are assigned to the specified symbols. The syntax is:

The number and types of the values returned must match the return values definition in the procedure header. See Procedure Header Syntax for more information.

The calling procedure may accept as many of the returned values as it needs; however, it may not attempt to accept more values than are returned. For details see call.

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

Copyright © 1997 Gensym Corporation, Inc.