Re: Calling Parent Methods
"Vadim O. Ustiansky" <[email protected]>
| Newsgroups | gmane.comp.web.mason.devel |
|---|---|
| Message-ID | <[email protected]> |
Hi,
from perldoc HTML::Mason::Devel:
If the call path starts with "PARENT:", then Mason will
start looking in the current component's parent for the
named method.
--
Yours sincerely,
Vadim.
On Thu, 15 Jul 2004, David Wheeler wrote:
> Hi All,
>
> I just had to figure out how to call a parent method from a component
> method. I finally figured out the syntax:
>
> $m->base_comp->parent->call_method($meth_name);
>
> But that seems unnecessarily verbose, given the shortcuts with SELF.
> Maybe I missed something?
>
> If not, how about a SUPER keyword?
>
> <& SUPER:.methname &>
>
> Or:
>
> <& SELF:SUPER:.methname &>
>
> Thoughts?
>
> Regards,
>
> David
>
>
>
> -------------------------------------------------------
> This SF.Net email is sponsored by BEA Weblogic Workshop
> FREE Java Enterprise J2EE developer tools!
> Get your free copy of BEA WebLogic Workshop 8.1 today.
> http://ads.osdn.com/?ad_id=4721&alloc_id=10040&op=click
> _______________________________________________
> Mason-devel mailing list
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/mason-devel
>
-------------------------------------------------------
This SF.Net email is sponsored by BEA Weblogic Workshop
FREE Java Enterprise J2EE developer tools!
Get your free copy of BEA WebLogic Workshop 8.1 today.
http://ads.osdn.com/?ad_id=4721&alloc_id=10040&op=click