comp.lang.ada
 help / color / mirror / Atom feed
From: bzs@bu-cs.UUCP
Subject: How to get Ada private types in C
Date: Wed, 11-Mar-87 02:50:36 EST	[thread overview]
Date: Wed Mar 11 02:50:36 1987
Message-ID: <5200@bu-cs.BU.EDU> (raw)


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

             reply	other threads:[~1987-03-11  7:50 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
1987-03-11  7:50 bzs [this message]
  -- strict thread matches above, loose matches on Subject: below --
1987-03-09 17:23 How to get Ada private types in C MHx7002 
1987-03-11 18:28 ` congdon
1987-03-12  8:22   ` chris
1987-03-18  1:25   ` Bob Dietrich
replies disabled

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