[PHPTAL] "setting slots in any context"
Kornel Lesiński
kornel at geekhood.net
Tue Jun 21 21:01:43 CEST 2011
On Mon, 20 Jun 2011 09:57:34 +0100, Per Bernhardt <plb at webfactory.de>
wrote:
> I think this is broken. Of course, it is not possible to come up with an
> example that does make advantage of this behavior.
>
> Could somebody explain what the comment "works around a bug with
> tal:define" means?
This is workaround for issue tested in
MetalSlotTest::testPreservesContext().
The problem is that tal:define creates new context for its variables,
which causes slots to be filled in a wrong context.
I've changed (in SVN) the workaround to fill only one level up instead of
on top level.
--
regards, Kornel Lesiński
More information about the PHPTAL
mailing list