Re: <%shared> bug?

"Jonathan Swartz" <[email protected]>
Newsgroups gmane.comp.web.mason.devel
Message-ID <[email protected]>
> On Tue, 23 Mar 2004, David Wheeler wrote:
>
> > > $m is defined before the component ever runs, but only in the default
> > > (HTML::Mason::Commands) package. This seems like a bug when using
> > > in_package in conjunction with the <%shared> section.
> >
> > Agreed. I poked around the code, but couldn't see right off where it
> > was getting written...
>
> Fortunately this is an easy fix, since we can always (and probably should)
> do HTML::Mason::Request->instance.  I'll include this in 1.26.  David, can
> you add a test case?

I'm not sure what you mean by "always", but let's limit this change to
$m->call_dynamic. It's unnecessary and inefficient to change the generated
$m->debug_hook and $m->print calls, for example.

Jon



-------------------------------------------------------
This SF.Net email is sponsored by: IBM Linux Tutorials
Free Linux tutorial presented by Daniel Robbins, President and CEO of
GenToo technologies. Learn everything from fundamentals to system
administration.http://ads.osdn.com/?ad_id=1470&alloc_id=3638&op=click
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.