News for hackers. Stuff that matters.
Re:C++ the Good Parts (2014) by Jtsummers on Thursday October 01, 2020 @01:00PM (#24653352)
https://www.adaic.org/resources/add_content/docs/95style/htm...

"Finalize" on objects of type "Ada.Finalization.Controlled".

Re:C++ the Good Parts (2014) by ncmncm on Thursday October 01, 2020 @02:44PM (#24654645)
Nope. Key words there are "should call".
Re:C++ the Good Parts (2014) by Jtsummers on Thursday October 01, 2020 @02:49PM (#24654708)
> 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.

Re:C++ the Good Parts (2014) by ncmncm on Friday October 02, 2020 @06:54PM (#24667860)
It fails to implement the aspect of destructors that makes them an architecturally important feature.