Path: utzoo!utgpu!jarvis.csri.toronto.edu!mailrus!uunet!cs.utexas.edu!tut.cis.ohio-state.edu!ucbvax!dewey.soe.berkeley.edu!oster From: oster@dewey.soe.berkeley.edu (David Phillip Oster) Newsgroups: comp.sys.mac.programmer Subject: Re: LLastClick assignment in C Keywords: LSC, C, List Manager, novice programmer, LLastClick, spam Message-ID: <33450@ucbvax.BERKELEY.EDU> Date: 3 Jan 90 09:05:19 GMT References: <34554@mirror.UUCP> Sender: usenet@ucbvax.BERKELEY.EDU Reply-To: oster@dewey.soe.berkeley.edu.UUCP (David Phillip Oster) Organization: School of Education, UC-Berkeley Lines: 18 In article <34554@mirror.UUCP> francis@prism.TMC.COM (Joe Francis) writes: >Cell cell; > >cell = LLastClick(...); > >I get the message "illegal operation on struct/union". This is a documented wart in THINK C, having to do with an interawction for the non-C way that Mac calls return structs. Here is a work around that generates zero extra code: Cell cel; *((long *) &cell) = LLastClick(...); --- David Phillip Oster -- No, I come from Boston. I just work Arpa: oster@dewey.soe.berkeley.edu -- in cyberspace. Uucp: {uwvax,decvax}!ucbvax!oster%dewey.soe.berkeley.edu