Re: Fwd: Re: BYREF_DENY

From: Date: Wed, 15 Dec 1999 08:35:25 +0000
Subject: Re: Fwd: Re: BYREF_DENY
References: 1  Groups: php.dev 
Request: Send a blank email to php-dev+get-13710@lists.php.net to get a copy of this message
Perhaps, instead, that "a function [will] declare that it always refuses to accept arguments by reference", unless specifically told otherwise? That would seem that halfway point between the two...that way "sloppy programming" would be caught, but the change seems less significant to the end user. --Joey Smith On Wed, 15 Dec 1999, Stig Bakken wrote: > On Tue, 14 Dec 1999, Zeev Suraski wrote: > > I disagree. Sometimes the programmer using a function knows better > whether it makes sense to pass something by reference. The way I read > this discussion is that you wanted to make the decision of whether the > argument should be passed by referene done by the called function only. If > that is the case, consider this a -1. What would be nice though, is a way > for a function to declare that it always refuses to accept arguments by > reference. If that is what you meant, consider this a +1 :-) > > - Stig >

« previous php.dev (#13710) next »