Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP Posting-Version: version B 2.10 5/3/83; site utzoo.UUCP Path: utzoo!henry From: henry@utzoo.UUCP (Henry Spencer) Newsgroups: net.lang.c Subject: Re: side effects inside sizeof Message-ID: <3962@utzoo.UUCP> Date: Tue, 19-Jun-84 18:42:29 EDT Article-I.D.: utzoo.3962 Posted: Tue Jun 19 18:42:29 1984 Date-Received: Tue, 19-Jun-84 18:42:29 EDT References: <4671@root44.UUCP> Organization: U of Toronto Zoology Lines: 12 I fully agree that my side-effects-of-sizeof program was an abomination, and I wasn't "grumbling" about the second printf producing a "1" so much as I was grumbling about the fact that the manual doesn't actually permit this (eminently sensible) behavior. The compilers are *not* broken, the manual is. I'm told that the draft ANSI C standard now includes specific words to the effect that sizeof is fully compile-time and side effects don't occur. Good. -- Henry Spencer @ U of Toronto Zoology {allegra,ihnp4,linus,decvax}!utzoo!henry