Andy/Randal,

Randal L. Schwartz wrote:
Well, not just me: it hates anything that has overloaded magic.
:
:
Stringifying $root should stamp out any overloaded comparison operator.

Unless anyone has a good reason why not?

Pardon me for not following Merlyn's code through thoroughly, but does this in any way relate to the fact that I can't access an overloaded hashref operator via the dotop? IOW, if I have an object that does something like:

        use overload ( '%{}' => sub { ... } );

then I _can_ do this in Perl:

        $myobj->{'fred'};

but I _can't_ do this in TT2:

        [% myobj.fred %]

(because it tries to do $myobj->fred() instead), which I have always found counterintuitive. If there's a way to kill two birds with one stone here, I'd certainly like to vote for that. But if my issue is totally separate from Randal's, then I'll just go away and come back when I figure out how to come up with a patch for it that works with the XS stash.

Thanx.


                -- Buddy

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

Reply via email to