7.13 Allocator

7.13.1 Definition

allocator ::=
    new subtype_indication
    | new qualified_expression

7.13.2 Examples

NEW node
NEW node'( 15 ns, NULL )
NEW node'( delay => 5 ns,
           next => stack )

Memory is allocated for the type node .
In the first example the default-value of the type
node is used for initialization, in the second example
the values stated in brackets are used.


NEW
bit_vector'( "01100010" )

By initializing it with "01100010" the width of
the allocated object is determined to be 8.


NEW
string( 1 TO 10 )

The size of the allocated memory range
is restricted by the determination of the
string width (10).