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.1 required=5.0 tests=BAYES_40,INVALID_DATE, MSGID_SHORT autolearn=no autolearn_force=no version=3.4.4 Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP Path: utzoo!utgpu!water!watnot!watmath!clyde!rutgers!husc6!bu-cs!bzs From: bzs@bu-cs.UUCP Newsgroups: comp.lang.c,comp.lang.ada Subject: How to get Ada private types in C Message-ID: <5200@bu-cs.BU.EDU> Date: Wed, 11-Mar-87 02:50:36 EST Article-I.D.: bu-cs.5200 Posted: Wed Mar 11 02:50:36 1987 Date-Received: Wed, 11-Mar-87 20:33:32 EST Organization: Boston U. Comp. Sci. Xref: utgpu comp.lang.c:1223 comp.lang.ada:165 List-Id: Yes, your program certainly works, amazing what people will find, very interesting. One problem is, try: printf("%d\n",sizeof(x)); in the test program. I get an Unknown size error on the compilation. This leads me to believe that although you could do something with this it's probably just exploiting a missing error check in the compiler caused by the need to "trust" forward references to struct pointers or something like that. A bug I guess. Ooops, that was on a SUN3. My Encore just barfs all over your original example (I'm pretty sure they're using a green hills compiler, not a pcc derivitive.) I think the ice is getting very thin. -Barry Shein, Boston University