From mboxrd@z Thu Jan 1 00:00:00 1970 X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) on polar.synack.me X-Spam-Level: X-Spam-Status: No, score=-1.3 required=5.0 tests=BAYES_00,FREEMAIL_FROM, HEADER_SPAM autolearn=no autolearn_force=no version=3.4.4 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 103376,b30bd69fa8f63cb2 X-Google-Attributes: gid103376,public X-Google-Thread: fc772,b30bd69fa8f63cb2 X-Google-Attributes: gidfc772,public X-Google-ArrivalTime: 2003-06-20 02:37:13 PST Path: archiver1.google.com!news1.google.com!newsfeed.stanford.edu!logbridge.uoregon.edu!uwm.edu!rpi!not-for-mail From: Hyman Rosen Newsgroups: comp.lang.ada,comp.lang.c++.moderated Subject: Re: C bug of the day Date: 20 Jun 2003 05:39:21 -0400 Organization: unknown Sender: cppmods@netlab.cs.rpi.edu Message-ID: References: <1054751321.434656@master.nyc.kbcfp.com> <7gBHa.12174$KF1.273806@amstwist00> <82347202.0306191147.11374726@posting.google.com> NNTP-Posting-Host: netlab.cs.rpi.edu X-Original-Date: Fri, 20 Jun 2003 01:57:13 GMT X-Submission-Address: c++-submit@netlab.cs.rpi.edu X-Auth: PGPMoose V1.1 PGP comp.lang.c++.moderated iQBVAwUAPvLWRUHMCo9UcraBAQEU7QIAgDVUoX/ZjDELety/V5ttD7K/tTV+3zjB wdSdtyOh3BhIQgAHUVvYBvxlJJchjShWt5yj78DkLUBu2wHEOqwlvQ== =wA57 Xref: archiver1.google.com comp.lang.ada:39487 comp.lang.c++.moderated:68782 Date: 2003-06-20T05:39:21-04:00 List-Id: Jim Rogers wrote: > Ada controlled types provide the ability to override finalization, > as has been stated before. They also allow the programmer to > overrride initialization and "adjustment". One "gotcha" for Ada newbies is that there is no overriding initialization when assigning an aggregate, presumably on the grounds that you can build the aggregate to what it would be after the initialization was through with it. But I think that this does not cover all the things that one might want to do in a constructor, and in those cases, you must take steps to disallow such aggregates. [ See http://www.gotw.ca/resources/clcm.htm for info about ] [ comp.lang.c++.moderated. First time posters: Do this! ]