3 ms·
Don't forget good old Ada.
by sacado2 6y ago
Don't forget good old Ada.
- ncmncm 6y agoAda does not have destructors or anything analogous.
- Jtsummers 6y agohttps://www.adaic.org/resources/add_content/docs/95style/html/sec_9/9-2-3.html https://www.adaic.org/resources/add_content/docs/95style/htm... "Finalize" on objects of type "Ada.Finalization.Controlled".
- ncmncm 6y agoNope. Key words there are "should call".
- Jtsummers 6y ago> Nope. Key words there are "should call". I mean, yes, those words are in there, but I'm responding to your words: > Ada does not have destructors or anything analogous. Which are factually wrong. Finalize is called automatically (per the link). And they are exactly what you say Ada lacks, analogues of destructors. Your complaint, now, is that Finalize and Initialize don't automatically call the same functions in the parent. That's a separate issue, and doesn't demonstrate that Ada doesn't have this thing (a variant of destructors) which it very clearly has.
- ncmncm 6y agoIt fails to implement the aspect of destructors that makes them an architecturally important feature.