* Q re Unchecked_Deallocation for unconstrained arrarys.
@ 2001-04-14 0:25 Bobby D. Bryant
2001-04-16 0:10 ` Jeff Creem
0 siblings, 1 reply; 3+ messages in thread
From: Bobby D. Bryant @ 2001-04-14 0:25 UTC (permalink / raw)
Does Unchecked_Deallocation work with unconstrained arrays? If so, will
a single instance work for all arrays in the type, or is a different
instance needed for each actual array size?
Here are some snippets that show what I am trying to do:
type DNA_String is array( Positive range <> ) of Float;
type DNA_Ptr is access DNA_String;
...
procedure Free is
new Ada.Unchecked_Deallocation( DNA_String, DNA_Ptr );
...
DNA : DNA_Ptr;
...
DNA := new DNA_String( 1 .. Number_Of_Units**2 );
...
Free( DNA );
Thanks,
Bobby Bryant
Austin, Texas
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2001-04-16 0:10 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2001-04-14 0:25 Q re Unchecked_Deallocation for unconstrained arrarys Bobby D. Bryant
2001-04-16 0:10 ` Jeff Creem
2001-04-15 22:25 ` Bobby D. Bryant
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox