publish
publish |
Purpose
Publish a symbol.
Synopsis
procedure publish(name:string, ref:string, external or structured)
Arguments
name
|
Symbol to identify the object
|
ref
|
A reference to an object of an external type, a structure (
e.g. set, list or array) or a string
|
Further information
1. This procedure can be used to publish an object in the model dictionary such that it can be found by native code using
name. Any entity (including local and private) can be exposed with this routine as long as it is of a referenced type (basically any type except integer, real and boolean). If a string variable is used the published symbol corresponds to a string constant initialized with the current value of this variable.
2. The provided
name must be a valid identifier that is not yet being used by the model as symbol name (including entity and subroutine names). In case of error the procedure raises an IO error.
Related topics