home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #27 / NN_1992_27.iso / spool / comp / lang / c / 17023 < prev    next >
Encoding:
Text File  |  1992-11-22  |  1.1 KB  |  28 lines

  1. Newsgroups: comp.lang.c
  2. Path: sparky!uunet!uunet.ca!wildcan!sq!msb
  3. From: msb@sq.sq.com (Mark Brader)
  4. Subject: Re: struct hack (was: Is this ANSI?)
  5. Message-ID: <1992Nov23.085112.2733@sq.sq.com>
  6. Summary: Clarification
  7. Organization: SoftQuad Inc., Toronto, Canada
  8. References: <By0vu2.7AF@unx.sas.com> <24262@alice.att.com> <1992Nov22.134020.16968@sq.sq.com>
  9. Date: Mon, 23 Nov 92 08:51:12 GMT
  10. Lines: 16
  11.  
  12. I wrote:
  13.  
  14. > [3] 3.1.2.5 says that a pointer contains a reference to an object and
  15. >     says nothing to allow it to possibly containing other information.
  16. >     Therefore fmptr->data is equivalent to p+offsetof(struct FM,data) ...
  17.  
  18. Here and farther down in the article, by fmptr->data, I meant of
  19. course the pointer to which this array-valued expression decays when
  20. its value is taken as an operand to + or [], as specified in 3.2.2.1.
  21. Sorry about that.
  22. -- 
  23. Mark Brader            "A clarification is not to make oneself clear.
  24. SoftQuad Inc., Toronto         It is to PUT oneself IN the clear."
  25. utzoo!sq!msb, msb@sq.com        -- Lynn & Jay, "Yes, Prime Minister"
  26.  
  27. This article is in the public domain.
  28.