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

From: Date: Tue, 05 Dec 2000 12:39:14 +0000
Subject: Re: Various small patches (Zend, TSRM...)
References: 1  Groups: php.dev 
Request: Send a blank email to php-dev+get-40122@lists.php.net to get a copy of this message
> why is there a need to differentiate anyway? You can easily recognize that, if you look at C++. In C++, "foo();" means the function takes no parameters. In C, it means the function takes any number of arguments. That allows you to write code like this: int foo(); main() { int a; double b; foo(a); foo(b); foo(); } At least for me, automatic type checking helps programmers to write bug-free code. The "foo();" notation prevents that. > Instead of removing this stale 'void', they're now forcing to > add it in. Well, it is impossible to remove that requirement without dropping K&R compatibility. - Sascha

« previous php.dev (#40122) next »