ReturnStack
| Stack | Position | Description |
|---|---|---|
| Stack(In) | top | any |
| top-1 | ... | |
| Stack(Out) | top | - |
With this statement, the message receiver can return values to the sender. ReturnStack removes all entries from the stack to copy them into the sender stack after ending the causing SendMsg statement as return value(s).
Information: ReturnStack only makes sense as the reaction to a message!
Example:
Calling module: An object will be put into the stack and the message will be called.
Module, which receives the message. Before the end of this message execution list, ReturnStack specifies the current stack to persist:
See also