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.3 required=5.0 tests=BAYES_00,INVALID_MSGID autolearn=no autolearn_force=no version=3.4.4 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 103376,cc7bad83fb245cb3 X-Google-Attributes: gid103376,public From: Robert Dewar Subject: Re: Binding a type to a union. Date: 1999/11/25 Message-ID: <81ih05$ir$1@nnrp1.deja.com>#1/1 X-Deja-AN: 552731413 References: <383ae9f8_3@news1.prserv.net> <81fbv1$uo8$1@news.gate.net> <81gtd5$rfb$1@nnrp1.deja.com> X-Http-Proxy: 1.0 x40.deja.com:80 (Squid/1.1.22) for client 205.232.38.14 Organization: Deja.com - Before you buy. X-Article-Creation-Date: Thu Nov 25 05:21:11 1999 GMT X-MyDeja-Info: XMYDJUIDrobert_dewar Newsgroups: comp.lang.ada X-Http-User-Agent: Mozilla/4.04 [en] (OS/2; I) Date: 1999-11-25T00:00:00+00:00 List-Id: In article <81gtd5$rfb$1@nnrp1.deja.com>, Ted Dennison wrote: > Perhaps that's because compilers ignore pragmas they don't recognize. > Just for fun, try putting a "pragma Foo_Bar;" in one of your source > files and compile it with Gnat. The worst you'll see is a: > warning: unrecognized pragma "Foo_Bar -- > T.E.D. Well I assume this is a joke, but I did not see a smiley. Of COURSE it is the case that if you use Unchecked_Union to interface to a C union, and it was not implemented, then your program wouldn't work. And if indeed the above was intended to be serious, then please note that a small amount of research would have shown you that most Ada 95 compilers implement this pragma. It was one of the first bits of extended Ada language technology agreed on by the ARA technical committee, and has since been discussed by the ARG as a possible semi-standard extension. Sent via Deja.com http://www.deja.com/ Before you buy.