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,e6c9800e35ccfeee X-Google-Attributes: gid103376,public From: dewar@merv.cs.nyu.edu (Robert Dewar) Subject: Re: GNAT: Performance of String functions Date: 1997/07/29 Message-ID: #1/1 X-Deja-AN: 260112956 References: <5r1l6e$e0h$1@ratatosk.uio.no> <1997Jul22.071638.1@eisner> <33D4F30F.5299@online.no> <5r5cfh$irn$1@ratatosk.uio.no> <33D74581.DEC93419@elca-matrix.ch> Organization: New York University Newsgroups: comp.lang.ada Date: 1997-07-29T00:00:00+00:00 List-Id: Matthew said <> Of course, an obvious reason: you really do not want to waste time comparing pad characters! The "=" defined in the GNAT bounded strings package of course does not compare unused characters. So this inefficiency arises only if the predefined equality is used. One approach we were considering was a pragma pragma Equality_Composes (type); with the obvious meaning.