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

Popular posts from this blog

delphi - How to convert bitmaps to video? -

jasper reports - Fixed header in Excel using JasperReports -

python - ('The SQL contains 0 parameter markers, but 50 parameters were supplied', 'HY000') or TypeError: 'tuple' object is not callable -