Skip to main content

  | मौसम…

411 समाचार
Public archive edition · Attributed source reporting with original dates · AI drafts are excluded

411 REFERENCE · Wikibooks

Ada Programming/Pragmas/Controlled

Reference material by Wikibooks contributors. This retains its source identity and is not 411 news reporting.

Pragma Controlled is an old Ada 83 pragma that was never implemented by any compiler. Consequently, it was finally removed with Ada 2012. The pragma was meant to prevent garbage collectors (also never implemented by any compiler) from tampering with the storage pool of the corresponding access type. The syntax was type Pointer is access Some_Type; pragma Controlled (Pointer); -- see RM_83 4.8; RM_95/2005 13.11.3 Also see Deleting objects from a storage pool in the page about access types. __NOTOC__ Ada Reference Manual Ada 83 4 8 Allocators Ada 95 13 11 3 Pragma Controlled Ada 2005 13 11 3 Pragma Controlled