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.9 required=5.0 tests=BAYES_00 autolearn=ham autolearn_force=no version=3.4.4 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 103376,6e064806c6a78fe4 X-Google-Attributes: gid103376,public X-Google-ArrivalTime: 2003-04-13 04:34:28 PST Path: archiver1.google.com!news1.google.com!newsfeed.stanford.edu!cyclone.bc.net!tdsnet-transit!newspeer.tds.net!news.binc.net!kilgallen From: Kilgallen@SpamCop.net (Larry Kilgallen) Newsgroups: comp.lang.ada Subject: Re: Ada to C Question Date: 13 Apr 2003 06:34:25 -0500 Organization: LJK Software Message-ID: References: <2a159604.0304121850.2820b67f@posting.google.com> <377ma.165206$OV.246750@rwcrnsc54> NNTP-Posting-Host: eisner.encompasserve.org X-Trace: grandcanyon.binc.net 1050233665 13124 192.135.80.34 (13 Apr 2003 11:34:25 GMT) X-Complaints-To: abuse@binc.net NNTP-Posting-Date: Sun, 13 Apr 2003 11:34:25 +0000 (UTC) Xref: archiver1.google.com comp.lang.ada:36113 Date: 2003-04-13T06:34:25-05:00 List-Id: In article <377ma.165206$OV.246750@rwcrnsc54>, tmoran@acm.org writes: >> type MYTYPE_YOURTYPE is (MyType, -- 0 >> YourType); -- 1 >> >> type YOURTYPE_MYTYPE is (YourType, -- 0 >> MyType); -- 1 > Does the program actually care? Does the representation or the > ordering matter? Could you perhaps change to > subtype YOURTYPE_MYTYPE is MYTYPE_YOURTYPE; > with no effect? I would not suggest trial-and-error as a method for determining whether this matters. You should review all sites where the enumerated values are used to check for less-than, greater-than, 'first, 'last and similar order-dependent constructs.