Re: loop
| From: | Ivo Jansch | Date: | Fri, 13 Apr 2001 07:39:50 +0000 |
| Subject: | Re: loop | ||
| References: | 1 | Groups: | php.smarty.general |
| Request: | Send a blank email to php-smarty-general+get-543@lists.php.net to get a copy of this message | ||
Hi,
Andrei Zmievski wrote:
> I suppose I could do that - what about backwards compatibility?
Well, you can leave both methods in and scan for [] in the token. If it
exists, parse it the new way, if it doesn't, the old way.
This will introduce an extra regexp which might slow down the compiler a
little bit, but you could counter that by having a member
_backward_compatible = false, causing it to skip the check.
Greetings,
Ivo
--
Ivo Jansch <ivo@ibuildings.nl>
ibuildings.nl BV - information technology
http://www.ibuildings.nl