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=0.2 required=5.0 tests=BAYES_00,INVALID_MSGID, REPLYTO_WITHOUT_TO_CC autolearn=no autolearn_force=no version=3.4.4 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 103376,c3a7c1845ec5caf9 X-Google-Attributes: gid103376,public From: Mats Weber Subject: Re: Equality operator overloading in ADA 83 Date: 1997/04/23 Message-ID: <335E0A26.16D0@elca-matrix.ch>#1/1 X-Deja-AN: 236823563 References: <01bc4e9b$ac0e7fa0$72041dc2@lightning> <335CAEFE.35DC@elca-matrix.ch> Organization: ELCA Matrix SA Reply-To: Mats.Weber@elca-matrix.ch Newsgroups: comp.lang.ada Date: 1997-04-23T00:00:00+00:00 List-Id: > What are you saying? That one should stick with the full-type-tagged > technique, and not use the pad-with-extra-characters technique? That depends on the overhead of tagged types versus regular records, and on the max length the package is instantiated with. > If I want to append characters to my string, that means I have to change > the value of the discriminant, and therefore must use aggregate assignment: > > [...] > > N'est-ce pas? Sure. Maybe a good optimizer can do something here and detect that the beginning of the string does not change.