comp.lang.ada
 help / color / mirror / Atom feed
* Ada to C Question
@ 2003-04-12 14:43 MPowell
  2003-04-12 14:53 ` Jeffrey Creem
  2003-04-12 19:43 ` tmoran
  0 siblings, 2 replies; 9+ messages in thread
From: MPowell @ 2003-04-12 14:43 UTC (permalink / raw)


Perhaps I'm in the wrong forum but I doing some translation from Ada
to C.
I've noticed in Ada you can do things like.

  type MYTYPE_YOURTYPE      is (MyType,                         -- 0
                                YourType);                       -- 1

  type YOURTYPE_MYTYPE     is (YourType,                       -- 0
                                MyType);                        -- 1




  typedef enum { MyType,
                 YourType } MYTYPE_YOURTYPE ;


Obviously if I typedef on YOURTYPE_MYTYPE the compiler complains so
I'm not sure how to handle this?



^ permalink raw reply	[flat|nested] 9+ messages in thread

end of thread, other threads:[~2003-04-13 13:38 UTC | newest]

Thread overview: 9+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
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 is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox