sounds like a precedence issue. You know, i'm not sure which behavior is more appropriate either. It would seem to me that if an object ISA hashref underneath, it should act more hashlike as a default behavior. that said, I don't know which behavior people would find more useful.

opinions, list?

Andy Wardley wrote:

Stephen Howard wrote:


could you supply the list with a list of changes between the two prior to release? I'm particularly curious to know if my own patch made it in, of course :)



There is a problem with your patch in that it causes one of the tests in t/stash.t to fail.

[% obj.list.first.name %]

With your patch the 'list' part matches the hash list virtual method
resulting in 'first.name' returning nothing. What previously happened
was that the 'obj' would get auto-listified, then 'first' would return
the first item in the list, i.e. the object, and the 'name' method would be called.


It's a subtle difference, and it's arguable about which is the better
behaviour. But because it could potentially break things I'm going to leave it out for 2.13 and then we'll address the issue for a developer
release afterwards.


Cheers
A







_______________________________________________
templates mailing list
[EMAIL PROTECTED]
http://lists.template-toolkit.org/mailman/listinfo/templates

Reply via email to