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,FREEMAIL_FROM autolearn=ham autolearn_force=no version=3.4.4 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 103376,6e064806c6a78fe4,start X-Google-Attributes: gid103376,public X-Google-ArrivalTime: 2003-04-12 07:43:52 PST Path: archiver1.google.com!postnews1.google.com!not-for-mail From: mpowell_jr@hotmail.com (MPowell) Newsgroups: comp.lang.ada Subject: Ada to C Question Date: 12 Apr 2003 07:43:52 -0700 Organization: http://groups.google.com/ Message-ID: <2a159604.0304120643.39f77838@posting.google.com> NNTP-Posting-Host: 192.91.147.34 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 8bit X-Trace: posting.google.com 1050158632 18158 127.0.0.1 (12 Apr 2003 14:43:52 GMT) X-Complaints-To: groups-abuse@google.com NNTP-Posting-Date: 12 Apr 2003 14:43:52 GMT Xref: archiver1.google.com comp.lang.ada:36102 Date: 2003-04-12T14:43:52+00:00 List-Id: 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?