comp.lang.ada
 help / color / mirror / Atom feed
From: mpowell_jr@hotmail.com (MPowell)
Subject: Re: Ada to C Question
Date: 13 Apr 2003 06:38:58 -0700
Date: 2003-04-13T13:38:59+00:00	[thread overview]
Message-ID: <2a159604.0304130538.18109d2f@posting.google.com> (raw)
In-Reply-To: 377ma.165206$OV.246750@rwcrnsc54

tmoran@acm.org wrote in message news:<377ma.165206$OV.246750@rwcrnsc54>...
> >   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 agree.  In the grand scheme of things I cant imagine/see why the
program woudl care and I'm taking the approach on converting such
that.

Ada
type SubSystem_ID is (A, B);
type System_ID is (A, B, C);

C
typedef enum {A, B, C } System_ID;
No need for 'SubSystem_ID'

If I get a consensus on  C versus ++ then i'll do as one poster
recommended even though it doenst appear feasible to use struct for
what could easily be done with enum.



      parent reply	other threads:[~2003-04-13 13:38 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
2003-04-13 13:38       ` MPowell [this message]
replies disabled

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox