[Templates] Strict method calls for blessed items
Bill Moseley
moseley@hank.org
Mon, 30 Oct 2006 18:08:29 -0800
On Mon, Oct 30, 2006 at 07:27:07PM -0500, Mike Friedman wrote:
> Greetings,
>
> If "foo" is a blessed hashref, and I say [% foo.mehtod %], since
> "mehtod" is not a method of foo, TT looks up "mehtod" as a hash key
> and returns undef. I would like a fatal error to occur if a
> non-existant method is called on a blessed hash (or blessed anything
> else.) This will make it much easier to debug templates.
There's DEBUG_UNDEF, but it's not limited to objects.
--
Bill Moseley
moseley@hank.org