On Mon, 20 Jun 2011 09:57:34 +0100, Per Bernhardt <p...@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

_______________________________________________
PHPTAL mailing list
PHPTAL@lists.motion-twin.com
http://lists.motion-twin.com/mailman/listinfo/phptal

Reply via email to