Re[2]: Sv: Re: [SMARTY] assign_by_ref() and append_by_ref()
| From: | Hendy Irawan | Date: | Sat, 03 Aug 2002 05:40:34 +0000 |
| Subject: | Re[2]: Sv: Re: [SMARTY] assign_by_ref() and append_by_ref() | ||
| References: | 1 2 3 | Groups: | php.smarty.general |
| Request: | Send a blank email to php-smarty-general+get-5565@lists.php.net to get a copy of this message | ||
smarty-general,
> Why not add a third parameter to assign() that tells assign() to either
> copy or pass by reference. You could default this new parameter to copy
> for backwards compatability. I'm new to PHP and Smarty, so don't laugh
> too hard if I'm way off base.
In the current PHP architecture, is there a way this can be done?
Your idea is excellent, though I think it'd be difficult to implement
in PHP since one function would have to accept two different types of
arguments. (is there any such thing as "function overloading" in PHP?)
I personally like the assign_by_ref() way of doing things, but if
anyone knows about PHP's overloading capabilities, PLEASE DO TELL
ME!!!!!!
Salam hangat,
Hendy Irawan - www.GaulDong.NET
Kantor: (021) 5260467 [SoftVation]
Kos: (021) 5261839 [kamar 3]