Re: [SMARTY-DEV] compiler-block functions (again, sorry)
| From: | Andrei Zmievski | Date: | Fri, 10 Jan 2003 16:15:30 +0000 |
| Subject: | Re: [SMARTY-DEV] compiler-block functions (again, sorry) | ||
| References: | 1 2 3 | Groups: | php.smarty.dev |
| Request: | Send a blank email to php-smarty-dev+get-517@lists.php.net to get a copy of this message | ||
On Fri, 10 Jan 2003, M Mohr wrote:
> On Fri, Jan 10, 2003 at 10:00:38AM -0500, Andrei Zmievski wrote:
> > I would do it this way, but rather provide a stack, similar to block
> > functions, so that you can inspect it to see what functions enclose
> > youru current one.
>
> yes. the stack is also useful to be able to acces the $tag_args, that
> where passed to the block when opening it, on the closing side.
>
> i just wanted to make it as simple as possible in the first place. i
> thougt if i minimize the implications that come with it, i raise the
> chance you accept my patch :)
>
> for now the compiler-plugins have to maintain their own stack(s).
> i will have a look, if i could bring this inside
> _compile_compiler_tag().
Just copy it from block functions, omitting irrelevant details, of
course.
-Andrei http://www.gravitonic.com/
"Then again, E=mc^2 may only be a local phenomenon."
-- Einstein