You cannot do this without using new . You can do this in any declarative section, however this common will only exist for the duration of this declarative section.
for example (not compiled ada-like pseudocode):
get(length) declare package stack is new stack_generic (max_stack_size => length); begin stack.push(); ... end;
Does it help?
Nws
source share