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,a369e9bb4bee1413 X-Google-Attributes: gid103376,public From: Robert A Duff Subject: Re: Are unconstrained arrays passed by references? Date: 1999/08/11 Message-ID: #1/1 X-Deja-AN: 511427638 Sender: bobduff@world.std.com (Robert A Duff) References: <7oomct$t93$1@nnrp1.deja.com> <7opbch$bca$1@nnrp1.deja.com> Organization: The World Public Access UNIX, Brookline, MA Newsgroups: comp.lang.ada Date: 1999-08-11T00:00:00+00:00 List-Id: bourguet@my-deja.com writes: > Is there a way to guarantee a pass by reference for a given type? There are several ways -- look up "by-reference" in the RM index. Eg a limited record is always passed by reference. > BTW, I'd not have passed a slice, due to the warning of not using > expression. A slice is a name, and a slice of an object is an object. > I though that one raison for which several types in C may have > different pointer size what to make it possible to use packed arrays > of char. But I may be wrong. Well, maybe, but the C compilers I know of on word-addressable machines don't pack. It's not clear how one would *ask* for packing in C, and it's not clear that it should be turned on by default (if at all). - Bob -- Change robert to bob to get my real email address. Sorry.