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,3d9f3074dc2c4699 X-Google-Attributes: gid103376,public From: bbalfour@std.caci.com (Brad Balfour) Subject: Re: How to overload assignment in Ada 95? Date: 1996/12/09 Message-ID: #1/1 X-Deja-AN: 203176264 distribution: usa references: <58aclh$ssd@gaia.cc.gatech.edu> organization: CACI, Inc. newsgroups: comp.lang.ada Date: 1996-12-09T00:00:00+00:00 List-Id: In article <58aclh$ssd@gaia.cc.gatech.edu>, chrisc@cc.gatech.edu (Christopher D Carothers) wrote: > In 7.6 of the Ada95 LRM, it talks about >user-defined assignment. Could someone please >provide me with an example of how I would in fact >"overload" the assignment operator for a particular >package. The LRM talks about the Ada.Finalization >package and the the "Adjust" procedure. However, >it does not give an example of how I would use >this package to achieve the "overloading" of assignment. I wrote up an example of this for an article in ACM SIGAda's Ada Letters magazine in Vol. XIV, No. 5, September/October, 1994. An online copy of this article can be found at: http://www.acm.org/~bbalfour/tips_no_1.html I hope this helps, Brad -- Brad Balfour SIGAda WWW Server CACI, Inc. http://www.acm.org/sigada/ (703) 277-6767 and also try: bbalfour@std.caci.com http://www.adahome.com/ address: 3930 Pender Drive * Fairfax, VA 22030