comp.lang.ada
 help / color / mirror / Atom feed
* Ada memory management?
@ 2004-10-07  9:39 matthias_k
  2004-10-07 12:06 ` Martin Krischik
  2004-10-07 17:24 ` Nick Roberts
  0 siblings, 2 replies; 7+ messages in thread
From: matthias_k @ 2004-10-07  9:39 UTC (permalink / raw)


Hey there,

since there is an allocator 'new' in Ada, I was wondering if there is a 
'delete' too. I've heard there is a special technique called Storage 
Pool in Ada to write own memory managers, but what is the default 
deallocator?

Consider this code:

procedure Does_This_Leak is
    type Int_Ptr is access Integer;
    ptr: Int_Ptr;
begin
    ptr := new Integer;
end Does_This_Leak;

Will this procedure leak? Or does Ada somehow deal on its own with the 
allocation.

Thanks in advance,
Matthias



^ permalink raw reply	[flat|nested] 7+ messages in thread

end of thread, other threads:[~2004-10-09  0:12 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2004-10-07  9:39 Ada memory management? matthias_k
2004-10-07 12:06 ` Martin Krischik
2004-10-07 17:24 ` Nick Roberts
2004-10-07 19:04   ` Luke A. Guest
2004-10-07 22:52     ` ECLAT [was: Ada memory management?] Nick Roberts
2004-10-08 18:16       ` Luke A. Guest
2004-10-09  0:12         ` Nick Roberts

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox