Path: utzoo!utgpu!jarvis.csri.toronto.edu!mailrus!cs.utexas.edu!samsung!zaphod.mps.ohio-state.edu!usc!snorkelwacker!bu.edu!bu-cs!mirror!francis From: francis@mirror.UUCP (Joe Francis) Newsgroups: comp.sys.mac.programmer Subject: LLastClick assignment in C Keywords: LSC, C, List Manager, novice programmer, LLastClick, spam Message-ID: <34554@mirror.UUCP> Date: 2 Jan 90 20:04:53 GMT Reply-To: francis@prism.TMC.COM (Joe Francis) Organization: Mirror Systems, Cambridge Mass. Lines: 31 ----------------------------------------------------------------------- Using Think C 3.0 with the following code: Cell cell; cell = LLastClick(...); I get the message "illegal operation on struct/union". I have circumvented with: long lcell; Cell cell; lcell = (long)LLastClick(...); cell.v = HiWord(lcell); cell.h = LoWord(lcell); But personally I find this solution aesthetically distasteful "in the extremus", as Mr. Conrad would say. I tried casting cell, but C doesn't seem to like casting lvalues. Somebody please banish this distraction from my code. ----------------------------------------------------------------------- SPAM! SPAM! SPAM! SPAM! SPAM! SPAM! SPAM! SPAM! SPAM! SPAM! SPAM! SPAM! Joe Francis francis@prism.TMC.COM .or. Nobody Expects the francis@mirror.TMC.COM Spammish Repitition -----------------------------------------------------------------------