comp.lang.ada
 help / color / mirror / Atom feed
* Why does `Unchecked_Deallocation` need the access type?
@ 2015-07-26  7:11 EGarrulo
  2015-07-26  8:54 ` Dmitry A. Kazakov
  0 siblings, 1 reply; 10+ messages in thread
From: EGarrulo @ 2015-07-26  7:11 UTC (permalink / raw)


The `Free` procedure to deallocate an object is declared like this:


procedure Free is
    new Ada.Unchecked_Deallocation(Object_Type, Object_Access_Type);


Yet the access parameter seems redundant.  Why is it necessary to specify it?

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

end of thread, other threads:[~2015-07-30  6:19 UTC | newest]

Thread overview: 10+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2015-07-26  7:11 Why does `Unchecked_Deallocation` need the access type? EGarrulo
2015-07-26  8:54 ` Dmitry A. Kazakov
2015-07-26 11:16   ` Niklas Holsti
2015-07-27 22:38     ` Jeremiah
2015-07-27 20:20   ` Randy Brukardt
2015-07-28  7:40     ` Dmitry A. Kazakov
2015-07-28 21:25       ` Randy Brukardt
2015-07-29  6:28         ` Dmitry A. Kazakov
2015-07-29 20:47           ` Randy Brukardt
2015-07-30  6:19             ` Dmitry A. Kazakov

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