>>>>> "Cees" == Cees Hek <[EMAIL PROTECTED]> writes:

Cees> I would have expected TT to first try the call as a method before
Cees> checking for a VMethod since it was dealing with an object (does it
Cees> even make sense to call a VMethod on an object?).  Since it does it
Cees> the other way around, there is no way of calling a method on an object
Cees> that has the same name as VMethod.  Is there a good reason for this,
Cees> or is it just the way things were implemented?

Perhaps (untested):

  method = 'size'; object.$method

will work?

-- 
Randal L. Schwartz - Stonehenge Consulting Services, Inc. - +1 503 777 0095
<[email protected]> <URL:http://www.stonehenge.com/merlyn/>
Perl/Unix/security consulting, Technical writing, Comedy, etc. etc.
See PerlTraining.Stonehenge.com for onsite and open-enrollment Perl training!

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

Reply via email to