Re: tokens as input to modifiers

messju mohr <[email protected]>
Newsgroups gmane.comp.php.smarty.devel
Message-ID <[email protected]>
On Wed, Jul 07, 2004 at 03:44:20PM -0700, boots wrote:
> > --- messju mohr <[email protected]> wrote:
> > > i think it's intended. "null" or "true" could be registered
> > > functions which makes the above valid syntax. allowing "null" and
> > > "true" as constants would make it ambiguous.
> 
> Sorry for the multiple emails, but I just had another thought. Where is
> the logic in allowing function plugin names that are already used as
> tokens within the parser? Particularly for things like "null", "true",
> etc ?

i think, it's the same logic that allows
$smarty->assign("@$\0\n", $value) even if the $value may be hardly
reachable from the template.

simply not checking is the fastest type of check. :)

> xo boots 

-- 
Smarty Development Mailing List (http://smarty.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.