Path: utzoo!mnetor!motto!dave From: dave@motto.UUCP (dave brown) Newsgroups: comp.lang.c Subject: Re: sizeof a struc field Message-ID: <72@motto.UUCP> Date: 12 Oct 89 17:17:00 GMT References: <7710@microsoft.UUCP> <11086@smoke.BRL.MIL> <131@dtoa3.dt.navy.mil> <11227@smoke.BRL.MIL> <7678@cdis-1.uucp> Reply-To: dave@motto.UUCP (dave brown) Lines: 16 In many articles many people write: all kinds of arguments about why or why not (((type *)0)->anything) is disallowed in the context of compile-time expressions. I apologize if I missed it, but is there a legal ANSI way of doing what the original poster wanted to do, which I assume was to assign the size of a structure to a variable at compile time. Thanks. ----------------------------------------------------------------------------- | David C. Brown | uunet!mnetor!motto!dave | | Motorola Canada, Ltd. | 416-499-1441 ext 3708 | | Communications Division | Disclaimer: Motorola is a very big company | -----------------------------------------------------------------------------