"Ernest E Vogelsinger" <[EMAIL PROTECTED]> wrote in message
> One more:
> True for now, but this is "officially deprecated". Functions or methods
> accepting a reference are required to be "prototyped" that way - this
> you not to "forget" to pass by reference. You really should modify your
> functions using reference parameters when declaring them, if you're using
> references...

Yes I know it is poor programming habits to do like I did... But I have a
reason for it. I have quite a lot methods that accept objects *optional*. So
class Product
    var $language;
    function Product($language = FALSE)
        $this->language = $language;
Now to make this possible it becomes impossible to do what you suggest:
function Product(&$language = FALSE)
is not allowed. And in my application this optional arguments functionality
is very important. So I have preferred this over the decent habit.

> --
>    >O Ernest E. Vogelsinger
>    (\) ICQ #13394035
>     ^ http://www.vogelsinger.at/

PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to