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: "DuckE" Subject: Re: Ada Core Technologies announces GNATCOM Date: 2000/04/12 Message-ID: <38f52ea8.0@news.pacifier.com>#1/1 X-Deja-AN: 610480236 References: <8coc5e$do2$1@nnrp1.deja.com> <8d0ru2$arc$1@nnrp1.deja.com> <8d1paa$n0n4@ftp.kvaerner.com> <8d2d8j$1tk$1@nnrp1.deja.com> X-Trace: 12 Apr 2000 19:19:20 PST, 198.145.224.179 X-MSMail-Priority: Normal X-Priority: 3 Newsgroups: comp.lang.ada X-MimeOLE: Produced By Microsoft MimeOLE V5.00.2919.6700 Date: 2000-04-12T00:00:00+00:00 List-Id: To quote K&R section 6.2: "There are a number of restrictions on C structures. The essential rules are that the only operations that you can perform on a structure are take its address with &, and accesss one of its members. This implies that structures may not be assigned or copied as a unit, and that they can not be passed to or returned from functions. (These restrictions will be removed in forthcoming versions.)" As I recall a number of 'C' compilers considered a structure to be more like an array than like a single variable, so structures were implicitly passed by reference (in the same manner as arrays still are). BTW: I vote for the Import(Ansi_C,...) which should solve the problem more easily in new code. SteveD