From: Robert A Duff <bobduff@world.std.com>
Subject: Re: Are unconstrained arrays passed by references?
Date: 1999/08/11
Date: 1999-08-11T00:00:00+00:00 [thread overview]
Message-ID: <wccr9laijl8.fsf@world.std.com> (raw)
In-Reply-To: 7opbch$bca$1@nnrp1.deja.com
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.
next prev parent reply other threads:[~1999-08-11 0:00 UTC|newest]
Thread overview: 9+ messages / expand[flat|nested] mbox.gz Atom feed top
1999-08-10 0:00 Are unconstrained arrays passed by references? bourguet
1999-08-10 0:00 ` Robert A Duff
1999-08-10 0:00 ` bourguet
1999-08-10 0:00 ` Tucker Taft
1999-08-10 0:00 ` Robert Dewar
1999-08-11 0:00 ` Larry Kilgallen
1999-08-10 0:00 ` Ted Dennison
1999-08-11 0:00 ` Robert A Duff [this message]
1999-08-11 0:00 ` Robert Dewar
replies disabled
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox