Hidden Finalizers in Ada

It&rsquo;s not a bug, it&rsquo;s a feature! Often you want to execute specific code when a object is destroyed - for example free all pointers in it. In Ada you need the Ada.Finalization package for this, which provides you with the Controlled and the Limited_Controlled tagged types; they allow custom action for Initialize , Adjust (not for limited) and Finalize . Example: ```ada linenums=1…