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 autolearn=unavailable autolearn_force=no version=3.4.4 Path: border1.nntp.dca.giganews.com!nntp.giganews.com!goblin3!goblin2!goblin.stu.neva.ru!feeder.erje.net!eu.feeder.erje.net!eternal-september.org!feeder.eternal-september.org!news.eternal-september.org!.POSTED!not-for-mail From: Simon Wright Newsgroups: comp.lang.ada Subject: Re: 'Size hack for enumerated types Date: Tue, 08 Jul 2014 16:02:49 +0100 Organization: A noiseless patient Spider Message-ID: References: Mime-Version: 1.0 Content-Type: text/plain Injection-Info: mx05.eternal-september.org; posting-host="5cbec41b82bafb9ba55107f02585e18b"; logging-data="1330"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX19fcDfQ02NCDLVYqQeE4rRTnLfbGD8m7oU=" User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.3 (darwin) Cancel-Lock: sha1:GqvT1K1NtEQMEZ6JwZwIwztXPiM= sha1:s3zWb/1NQoDSILuOTFvFwV2ksOw= Xref: number.nntp.dca.giganews.com comp.lang.ada:187453 Date: 2014-07-08T16:02:49+01:00 List-Id: Victor Porton writes: > It could be able to meaningfully reject the code, only it knew the C > function profile. But what it known about the C function profile is > only what is provided in our pragma. Certainly the C function profile > which we provide is compatible with itself :-) > > So, the C code is compatible with some Ada function profile, but not > necessarily with one we provide. To paraphrase, if your code is wrong it won't work properly.