Hi,

Am Sonntag, 18. Januar 2004 01:32 schrieb Stas Bekman:
> Boris Zentner wrote:
> > Hi,
> >
> > Am Donnerstag, 15. Januar 2004 01:41 schrieb Stas Bekman:
> >>Please take a look at this new manpage
> >>http://perl.apache.org/docs/2.0/api/Apache.html
> >>
> >>This issue of ghost Apache namespace troubles me. In mod_perl 1.0 it was
> >> OK to have functions like Apache::current_callback() because almost
> >> everything was preloaded. I don't think it's OK in mp2. It's absolutely
> >> not obvious which module needs to be loaded to get this API, and most
> >> people will try to load Apache, and it won't do the trick.
> >
> > This is very confusing and incomprehencible to  me. My last mp2
> > application starts with:
> >
> > use mod_perl 1.99;
> > use Apache::RequestRec ();
> > use Apache::RequestIO ();
> > use Apache::ServerUtil ();
> > use Apache::RequestUtil ();
> > use Apache::Util ();
> > use APR::Date ();
> > use APR::Table();
> >
> > and im sure my next project start with this lines too. If someone ask why
> > my answer is I do not know, but it does not work otherwise.
>
> And that's fine. Think of mp2 as a bunch of CPAN modules. You need to load
> them before you can use them.

That is fine and reasonable to me. My point is that once I have an object I 
want to be sure that I can use every method for this object. For example this 
implies that whenever I have a RequestRec object that can print, I must be 
sure that I can do so without loading Apache::RequestIO. 

It is ok to 'use APR::Date' if I like to use a function of it or operate on a 
object that I can produce. But it is not ok in my opinion that my 
Apache::RequestRec object gets magical date methods.

>
> I guess people will appreaciate this separation once they will run mp2 in
> production. mp2 comes with more than 40 modules and more than 400 methods.
> Compared to 3 modules in mp1 (which you still had to load, remember!) and
> some 100 methods. If mp2 did what mp1 did you will get too much unnecessary
> bloat.
>
> > perldoc does not know anything of the above.
>
> because of the Apache2 issue. You need to use mp2doc (and it needs to be
> documented) or patch perldoc to load 'use Apache2'.
>
> __________________________________________________________________
> Stas Bekman            JAm_pH ------> Just Another mod_perl Hacker
> http://stason.org/     mod_perl Guide ---> http://perl.apache.org
> mailto:[EMAIL PROTECTED] http://use.perl.org http://apacheweek.com
> http://modperlbook.org http://apache.org   http://ticketmaster.com
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]

-- 
Boris

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to