runtime - Ada generics at run-time -
how instantiate generic @ runtime instead of @ compile time. example without using new.
you cannot without use of new
. can in declarative section, generic extant duration of scope of declaritive section.
for example (not compiled ada-like pseudocode):
get(length) declare package stack new stack_generic (max_stack_size => length); begin stack.push(); ... end; -- stack package no longer in scope.
does ?
Comments
Post a Comment