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,60dd4fe7723c0ef X-Google-Attributes: gid103376,public From: Robert Dewar Subject: Re: Ada Core Technologies announces GNATCOM Date: 2000/04/13 Message-ID: <8d54bm$t2$1@nnrp1.deja.com>#1/1 X-Deja-AN: 610768592 References: <8coc5e$do2$1@nnrp1.deja.com> <8d0ru2$arc$1@nnrp1.deja.com> <8d1paa$n0n4@ftp.kvaerner.com> <8d2csa$1hm$1@nnrp1.deja.com> X-Http-Proxy: 1.0 x31.deja.com:80 (Squid/1.1.22) for client 205.232.38.14 Organization: Deja.com - Before you buy. X-Article-Creation-Date: Thu Apr 13 18:40:57 2000 GMT X-MyDeja-Info: XMYDJUIDrobert_dewar Newsgroups: comp.lang.ada X-Http-User-Agent: Mozilla/4.61 [en] (OS/2; I) Date: 2000-04-13T00:00:00+00:00 List-Id: In article , Robert A Duff wrote: > Robert Dewar writes: > > > Indeed the quoted paragraph above is EXACTLY the confusion > > that caused this unsupportable design of the C_Pass_By_COpy > > pragma in the first place. > > I don't recall it that way. I think the reasoning was that when people > conceptually want to pass a struct in C, they usually pass a pointer to > it, so we should mimic that. Flawed reasoning, I admit. But surely you > don't think that the designers of Ada 9X were confused about the > difference between passing by reference, versus passing the address of a > copy?! I don't understand the above paragraph in relation to the C_Pass_By_Copy pragma as opposed to the RM. My quote above was specifically about this pragma. > > Unfortunately, there is nothing much we can do at this stage > > except live with a little mess here, luckily cases where C > > programmers pass records as parameters (as opposed to pointers > > to records) are rare. > Yes. Somehow, "rare" became "nonexistent, so don't worry about it." > *That* was the mistake. Again, you seem to be talking about the RM here, the C_Pass_By_Copy is all about dealing with the rare case??? Sent via Deja.com http://www.deja.com/ Before you buy.