Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP Path: utzoo!mnetor!seismo!ut-sally!husc6!endor!olson From: olson@endor.harvard.edu (Eric Olson) Newsgroups: comp.sys.mac Subject: Re: Passing EventRecords to DA's in LSC Message-ID: <1992@husc6.UUCP> Date: Fri, 15-May-87 09:36:04 EDT Article-I.D.: husc6.1992 Posted: Fri May 15 09:36:04 1987 Date-Received: Sat, 16-May-87 22:14:14 EDT References: <7383@boring.mcvax.cwi.nl> <259@hyper.UUCP> Sender: news@husc6.UUCP Reply-To: olson@endor.UUCP (Eric Olson) Organization: Aiken Computation Lab Harvard, Cambridge, MA Lines: 20 In article <259@hyper.UUCP> mark@hyper.UUCP (Mark Mendel) writes: >Apparently, p->csParam is declared as an array of shorts. There is, however, >a clearer way to get an EventRecord pointer out of this: > > *(EventRecord **)&p->csParam > >...You have to use the '&' operator, since otherwise >p->csParam will extract a 16 bit quantity. csParam is declared as int csParam[]. Doesn't this mean that p->csParam is the pointer to the base of the array, and p->csParam[0] and p->csParam[1] are shorts? It seems to me that &p->csParam is the same as p->csParam and also the same as &p->csParam[0] Am I missing something? -Eric