From: Kilgallen@SpamCop.net (Larry Kilgallen)
Subject: Re: Ada to C Question
Date: 13 Apr 2003 06:34:25 -0500
Date: 2003-04-13T06:34:25-05:00 [thread overview]
Message-ID: <o5Ac66Ye3Vu$@eisner.encompasserve.org> (raw)
In-Reply-To: 377ma.165206$OV.246750@rwcrnsc54
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.
next prev parent reply other threads:[~2003-04-13 11:34 UTC|newest]
Thread overview: 9+ messages / expand[flat|nested] mbox.gz Atom feed top
2003-04-12 14:43 Ada to C Question MPowell
2003-04-12 14:53 ` Jeffrey Creem
2003-04-12 17:18 ` MPowell
2003-04-12 19:16 ` Larry Kilgallen
2003-04-12 19:43 ` tmoran
[not found] ` <2a159604.0304121850.2820b67f@posting.google.com>
2003-04-13 5:37 ` Hyman Rosen
2003-04-13 6:05 ` tmoran
2003-04-13 11:34 ` Larry Kilgallen [this message]
2003-04-13 13:38 ` MPowell
replies disabled
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox