Path: utzoo!mnetor!uunet!husc6!bloom-beacon!oberon!skat.usc.edu!blarson
From: blarson@skat.usc.edu (Bob Larson)
Newsgroups: comp.lang.c
Subject: Re: Address of Array
Message-ID: <5661@oberon.USC.EDU>
Date: 12 Dec 87 07:47:48 GMT
References: <126@citcom.UUCP> <2550034@hpisod2.HP.COM> <1854@haddock.ISC.COM> <532@ndsuvax.UUCP> <2020@ttrdc.UUCP> <555@ndsuvax.UUCP> <1949@haddock.ISC.COM> <5308@zen.berkeley.edu>
Sender: news@oberon.USC.EDU
Reply-To: blarson@skat.usc.edu (Bob Larson)
Organization: USC AIS, Los Angeles
Lines: 17

In article <5308@zen.berkeley.edu> sarge@scam.berkeley.edu (Steven Brian McKechnie Sargent) writes:
>On a "prior art" note, VAX C allows objects like &3, even though 3 is not an
>lvalue.

You mean Primos C isn't the only one with the "extention"?  Primos C
also does some bogus things with casts in procedure calls to "fortran"
(anything other than C must be declared fortran).  A code fragment:

fortran void tnou();		/* a routine from the standard library */
tnou((char [])"hello world", &(short)11);

The (char []) cast is needed.  Note you can also take the address of a
cast expression.
Bob Larson	Arpa: Blarson@Ecla.Usc.Edu	blarson@skat.usc.edu
Uucp: {sdcrdcf,cit-vax}!oberon!skat!blarson
Prime mailing list:	info-prime-request%fns1@ecla.usc.edu
			oberon!fns1!info-prime-request