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,INVALID_MSGID autolearn=no autolearn_force=no version=3.4.4 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 103376,b14a804025dceb20 X-Google-Attributes: gid103376,public From: Marin David Condic Subject: Re: Constructors/Destructors in Ada95 Date: 2000/10/21 Message-ID: <39F1A4EE.37C833F2@acm.org>#1/1 X-Deja-AN: 684145899 Content-Transfer-Encoding: 7bit References: <39EE160D.F0A2000@bigfoot.com> <39EF5431.BF4CD793@bigfoot.com> <39F0A6C7.E592AFFB@averstar.com> <39F0C9B9.EA30D529@bigfoot.com> Organization: Quadrus Corporation X-Accept-Language: en X-Server-Date: 21 Oct 2000 14:14:33 GMT Content-Type: text/plain; charset=us-ascii Mime-Version: 1.0 Newsgroups: comp.lang.ada Date: 2000-10-21T14:14:33+00:00 List-Id: Remember that Ada is not C++. You can pretty much get the same net effect of constructors and destructors in Ada - but not in exactly the same way. So you change the model instead. Since Ada doesn't treat assignment the same way as C++ and you don't have the same parameter features, you've got to work with what Ada does provide and try not to make it look exactly like C++. The job does get done and, IMHO, it is a lot less semantically messy when done in Ada as opposed to C++. MDC Francois Godme wrote: > Yes, they serve the same purpose with almost the same power. Constructors in > C++ have another feature unknown in Ada which allows the creation of constant > member attributes. It applies to any type. Not to a limited set of types which > can be used as record discriminants. -- ====================================================================== Marin David Condic - Quadrus Corporation - http://www.quadruscorp.com/ Send Replies To: m c o n d i c @ q u a d r u s c o r p . c o m Visit my web site at: http://www.mcondic.com/ "Giving money and power to Government is like giving whiskey and car keys to teenage boys." -- P. J. O'Rourke ======================================================================