Path: utzoo!mnetor!uunet!lll-winken!lll-tis!ames!husc6!m2c!applix!scott From: scott@applix.UUCP (Scott Evernden) Newsgroups: comp.sys.amiga Subject: Re: Amiga programmer's hint $14 Message-ID: <658@applix.UUCP> Date: 6 Mar 88 05:08:06 GMT References: <8803032106.AA06910@cory.Berkeley.EDU> Reply-To: scott@applix.UUCP (Scott Evernden) Organization: APPLiX Inc., Westboro MA Lines: 21 In article <8803032106.AA06910@cory.Berkeley.EDU> dillon@CORY.BERKELEY.EDU (Matt Dillon) writes: > > On the left side of an assignment? Yow! That isn't C. > I have done this kind of thing now and then, and I believe that it's legal C. I have not yet discovered a compiler that complains about this: struct point { int x, y; } p1, p2; struct rect { int x1, y1, x2, y2; } r; alpha() { * (struct point *) &r.x1 = p1; * (struct point *) &r.x2 = p2; } -scott