Re: Various small patches (Zend, TSRM...)

From: Date: Tue, 05 Dec 2000 11:41:43 +0000
Subject: Re: Various small patches (Zend, TSRM...)
References: 1  Groups: php.dev 
Request: Send a blank email to php-dev+get-40113@lists.php.net to get a copy of this message
On Tue, 5 Dec 2000, Zeev Suraski wrote: > I'm not saying that functions shouldn't be fully prototyped. I am saying > that the need to write 'void' explicitly is really dumb, and I'd be happy > to supress it. You kinda put words in Andi's mouth - he wondered if there > was a way to turn off warnings for this pointless 'void' thing, not turning > off function prototypes. You know that there's no such way, and > automatically assumed that he (and I) want to turn function prototypes off > completely. Now you are putting words into my mouth. No, I did not assume that. I replied to your criticism of the changes in ANSI C and tried to outline why it is sensible to write "foo(void);" We are still in a transition phase. ISO C99 supports the K&R semantics of prototypes with empty parentheses, because such code bases still exist and are only slowly converted over to using prototype-format parameter type declarators, if at all. But: ISO C99 says in 6.11.6: "The use of function declarators with empty parentheses is an obsolescent feature." So, the K&R semantics will go away. That is why I maintain that you should not suppress a compiler message which simply says "you are using an obsolescent feature. Don't do that." - Sascha

« previous php.dev (#40113) next »