[ << ] [ < ] [ Up ] [ > ] [ >> ]         [Top] [Contents] [Index] [ ? ]

12.23 NEW

In all forms of NEW, name must be a local variable name or NEW-able structured or intrinsic system variable.

In its inclusive form, NEW saves each specified name on the process stack and removes it, provided the optional postcondition evaluates to true or is omitted. When the current stack frame is exited, the previous values are restored.

Syntax

NEW[:postcondition] name[,...name]

In its exclusive form, NEW saves all local variables except those named (each name) and removes them, provided the optional postcondition evaluates to true or is omitted. When the current stack frame is exited, the previous values are restored.

Syntax

NEW[:postcondition] (name[,...name])

In its argumentless form, NEW saves all local variables and removes them, provided the optional postcondition evaluates to true or is omitted. When the current stack frame is exited, the previous values are restored.

Syntax

NEW:postcondition name=expr

In its initializing form, NEW stacks variable name and sets its value to expr, provided the optional postcondition evaluates to true or is omitted. When the current stack frame is exited, the previous value is restored.

Syntax

NEW:postcondition name=$%^CLASS(initializer-list)

In its object-oriented form, NEW creates an instance of class ^CLASS in local variable name and calls the constructor of ^CLASS, passing initializer-list as its argument(s).


[ << ] [ < ] [ Up ] [ > ] [ >> ]         [Top] [Contents] [Index] [ ? ]

This document was generated on May 5, 2025 using texi2html 5.0.