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,e7dd5c59df710c50 X-Google-Attributes: gid103376,public From: "Matthew Heaney" Subject: Re: Record comparison special case Date: 1999/12/05 Message-ID: <384a1027_2@news1.prserv.net>#1/1 X-Deja-AN: 556794971 Content-transfer-encoding: 7bit References: <829bp3$oba$1@nnrp1.deja.com> Content-Type: text/plain; charset="US-ASCII" X-Complaints-To: abuse@prserv.net X-Trace: 5 Dec 1999 07:11:35 GMT, 129.37.213.253 Organization: Global Network Services - Remote Access Mail & News Services Mime-version: 1.0 Newsgroups: comp.lang.ada Date: 1999-12-05T00:00:00+00:00 List-Id: In article <829bp3$oba$1@nnrp1.deja.com> , keniwasa@my-deja.com wrote: > I have a record made up of records in which only small parts (a few > fields) are usually significant. > > The point is that I would like to compare two such records and determine > whether the parts that both records consider to be significant are the > same. The easiest way I could see to handle this is to have an > "insignificant" value in every enumeration and have some "insignificant" > coding for real values, but that's not an option since the types cannot > be modified. What's wrong with simply redefining the equality operation of the record type? type RT is tagged record ... end record; function "=" (L, R : RT) return Boolean; Now you can implement "=" so that just the "small parts" of the L and R records are compared. -- Time and again the nation's courts have ruled that creationism, as a religious dogma, cannot be taught in science classes. Now, creationists are advancing a new tactic: eliminating the teaching of evolution and other sciences that complement evolution, such as geology, paleontology, and biological anthropology. By doing so, they are not only endangering church-state separation but also seriously jeopardizing the science education of future generations. http://www.campusfreethought.org/sos/