"Ernest E Vogelsinger" <[EMAIL PROTECTED]> wrote in message news:5.1.1.6.2.20021108170633.00b8cb60@;mail.vogelsinger.at... > > You might always simply omit the parameter when calling the function > (you'll get a notice about that if enabled). You just cannot pass constants: > > function Product(&$language) > { > ... > } > > // ok, but gives a notice > Product(); > > // will fail > Product('ger'); >
ok well that's an idea indeed... i'll think about it. > If you keep your code like it is be warned that it may break with a future > version of PHP. > why do you think it won't be supported by future versions? all i do is passing an object by reference. because in this case this function always should accept its argument as a reference and therefore is bad programming habit does not mean the php construction is bad or weird!?! > > -- > >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