Path: utzoo!mnetor!uunet!husc6!mailrus!ames!pasteur!ucbvax!CORY.BERKELEY.EDU!dillon From: dillon@CORY.BERKELEY.EDU (Matt Dillon) Newsgroups: comp.sys.amiga Subject: Re: Amiga programmer's hint $14 Message-ID: <8803062057.AA19608@cory.Berkeley.EDU> Date: 6 Mar 88 20:57:44 GMT Sender: daemon@ucbvax.BERKELEY.EDU Lines: 18 :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 *) &r.x1 = p1; : * (struct point *) &r.x2 = p2; :} : :-scott Sure, that works fine. What I meant was assigning something TO a cast, ala: (long)x = 43; is what is illegal. One thing to remember is that structure assignment is somewhat new in C, and thus not all compilers have been upgraded to it yet. -Matt