Public Comment Number PC-UK0169 ISO/IEC CD 9899 (SC22N2620) Public Comment =========================================== Date: 1998-03-27 Author: Clive D.W. Feather Author Affiliation: Self Postal Address: Demon Internet Limited 322 Regents Park Road London N3 2QQ United Kingdom E-mail Address: Telephone Number: +44 181 371 1138 Fax Number: +44 181 371 1037 Number of individual comments: 1 Comment 1. Category: Feature that should be included Committee Draft subsection: 7.1.6 Title: relax restrictions on the offsetof macro Detailed description: The offsetof macro currently requires its first argument to be a structure type, and is unclear what the second argument is. There is no particular reason to forbid unions for the first argument, nor to forbid complex constructs for the second argument, provided only that the address constant requirement continues to hold. In 7.1.6 paragraph 3, change "structure" to "structure or union" in two places, and change: The /member-designator/ shall be such that given to: The /member-designator/ may be any construct, provided that given and add a footnote to the end of the paragraph: [*] Thus the member-designator may be a construct like /m [2]/ or /a.b.c/. The offset of any member of a union is 0.