Re: [mp2] killing the ghost Apache:: usage?

2004-01-17 Thread Elizabeth Mattijsen
At 18:28 -0800 1/16/04, Stas Bekman wrote: Geoffrey Young wrote: 2) liz, your opinion here is especially valuable wrt what is "intuitive." stas and I both have our own (generally differing) opinion of API intuitiveness, and as someone who is in the middle of figuring out the new API, you represent

Re: [mp2] killing the ghost Apache:: usage?

2004-01-17 Thread Geoffrey Young
> What I really find annoying, is that when you're porting, things start > to fail. agreed. that's even the basis for the mp2 talk I've been giving and the article I wrote for perl.com - porting is lots more frustrating than we sometimes make it out to be. > I realize (now) that there is a wa

Re: [mp2] killing the ghost Apache:: usage?

2004-01-17 Thread Elizabeth Mattijsen
At 10:07 -0500 1/17/04, Geoffrey Young wrote: > I realize (now) that there is a way to find out which method > resides in which module: http://perl.apache.org/docs/2.0/user/porting/porting.html#Using_C_ModPerl__MethodLookup__to_Discover_Which_mod_perl_2_0_Modules_Need_to_Be_Loaded > but why does

Re: [mp2] killing the ghost Apache:: usage?

2004-01-17 Thread Geoffrey Young
>> > the right module and just makes the right sub gets called? >> IIRC MethodLookup does have a 'load all' feature. but other than >> that, see >> Apache::porting. > > > That's fine, but that's introducing bloat (which may not be such a > problem with perfork MPM's, but _may_ be a problem wit

Re: [mp2] killing the ghost Apache:: usage?

2004-01-17 Thread Boris Zentner
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 almo

Re: [mp2] killing the ghost Apache:: usage?

2004-01-17 Thread Boris Zentner
Hi, Am Samstag, 17. Januar 2004 16:16 schrieb Elizabeth Mattijsen: [...] > Anyway, loading these methods on demand may actually be very useful > for Perl 5 ithreaded based MPM's! > but for forkbased servers it is just the opposite. I dislike your AUTOLOAD idea for that reason. > > Liz -- Bori

Re: [mp2] killing the ghost Apache:: usage?

2004-01-17 Thread Perrin Harkins
Boris Zentner wrote: RequestIO is not inhereted from RequestRec. Also I have not created a object of type RequestIO they are just unrelated to eachother. I whould expect a full working object from the beginning. If my program does more than passing a obj ref around the I know I have to load this

Re: [mp2] killing the ghost Apache:: usage?

2004-01-17 Thread Geoffrey Young
> For the record, I agree with Boris on this. Users should never be > required to use methods defined in namespaces of modules that they did > not explicitly load, and modules should not define things in other > namespaces (like the Apache:: stuff that started this thread). well, there are a few

Re: [mp2] killing the ghost Apache:: usage?

2004-01-17 Thread Elizabeth Mattijsen
At 18:02 +0100 1/17/04, Boris Zentner wrote: Am Samstag, 17. Januar 2004 16:16 schrieb Elizabeth Mattijsen: [...] Anyway, loading these methods on demand may actually be very useful > for Perl 5 ithreaded based MPM's! but for forkbased servers it is just the opposite. I dislike your AUTOLOAD idea

Re: [mp2] killing the ghost Apache:: usage?

2004-01-17 Thread Stas Bekman
Boris Zentner wrote: Anyway, loading these methods on demand may actually be very useful for Perl 5 ithreaded based MPM's! but for forkbased servers it is just the opposite. I dislike your AUTOLOAD idea for that reason. It's not quite opposite. You don't want to load 40+ modules if you are goin

Re: [mp2] killing the ghost Apache:: usage?

2004-01-17 Thread Stas Bekman
Elizabeth Mattijsen wrote: At 10:07 -0500 1/17/04, Geoffrey Young wrote: > I realize (now) that there is a way to find out which method > resides in which module: http://perl.apache.org/docs/2.0/user/porting/porting.html#Using_C_ModPerl__MethodLookup__to_Discover_Which_mod_perl_2_0_Modules_Need_

Re: [mp2] killing the ghost Apache:: usage?

2004-01-17 Thread Stas Bekman
Geoffrey Young wrote: For the record, I agree with Boris on this. Users should never be required to use methods defined in namespaces of modules that they did not explicitly load, and modules should not define things in other namespaces (like the Apache:: stuff that started this thread). well, t

Re: [mp2] killing the ghost Apache:: usage?

2004-01-17 Thread 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() b

Re: [mp2] killing the ghost Apache:: usage?

2004-01-17 Thread Perrin Harkins
Geoffrey Young wrote: it's definition is elsewhere, in Apache::RequestUtil, but Apache::RequestUtil defines Apache::RequestRec::is_initial_req(). the end result is that you can have the Perlish $r->is_initial_req() instead of the bulky Apache::RequestUtil::is_initial_req($r). I would much prefer t

Re: [mp2] killing the ghost Apache:: usage?

2004-01-17 Thread Boris Zentner
Hi, Am Sonntag, 18. Januar 2004 01:13 schrieb Stas Bekman: > Boris Zentner wrote: > >>Anyway, loading these methods on demand may actually be very useful > >>for Perl 5 ithreaded based MPM's! > > > > but for forkbased servers it is just the opposite. I dislike your > > AUTOLOAD idea for that reas

Re: [mp2] killing the ghost Apache:: usage?

2004-01-17 Thread Stas Bekman
Perrin Harkins wrote: Geoffrey Young wrote: it's definition is elsewhere, in Apache::RequestUtil, but Apache::RequestUtil defines Apache::RequestRec::is_initial_req(). the end result is that you can have the Perlish $r->is_initial_req() instead of the bulky Apache::RequestUtil::is_initial_req($r

Re: [mp2] killing the ghost Apache:: usage?

2004-01-17 Thread Stas Bekman
Boris Zentner wrote: Hi, Am Sonntag, 18. Januar 2004 01:13 schrieb Stas Bekman: Boris Zentner wrote: Anyway, loading these methods on demand may actually be very useful for Perl 5 ithreaded based MPM's! but for forkbased servers it is just the opposite. I dislike your AUTOLOAD idea for that reas

Re: [mp2] killing the ghost Apache:: usage?

2004-01-17 Thread Boris Zentner
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

Re: [mp2] killing the ghost Apache:: usage?

2004-01-17 Thread Boris Zentner
Am Sonntag, 18. Januar 2004 06:35 schrieb Stas Bekman: > Boris Zentner wrote: > > Hi, > > > > Am Sonntag, 18. Januar 2004 01:13 schrieb Stas Bekman: > >>Boris Zentner wrote: > Anyway, loading these methods on demand may actually be very useful > for Perl 5 ithreaded based MPM's! > >>> > >>>

Re: [mp2] killing the ghost Apache:: usage?

2004-01-17 Thread Stas Bekman
Boris Zentner wrote: [...] In which case it seems that you are saying exactly what Liz does: i.e. you want to be able to load only the modules that you are going to use. Nobody is forcing you to use AUTOLOAD if you don't want to. Or may be I've lost you and not quite following what your point/disag

Re: [mp2] killing the ghost Apache:: usage?

2004-01-17 Thread Perrin Harkins
Stas Bekman wrote: Perrin Harkins wrote: Geoffrey Young wrote: it's definition is elsewhere, in Apache::RequestUtil, but Apache::RequestUtil defines Apache::RequestRec::is_initial_req(). the end result is that you can have the Perlish $r->is_initial_req() instead of the bulky Apache::RequestUt

Re: [mp2] killing the ghost Apache:: usage?

2004-01-17 Thread Stas Bekman
Boris Zentner wrote: 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 trouble

Re: [mp2] killing the ghost Apache:: usage?

2004-01-17 Thread Stas Bekman
Perrin Harkins wrote: Stas Bekman wrote: Perrin Harkins wrote: Geoffrey Young wrote: it's definition is elsewhere, in Apache::RequestUtil, but Apache::RequestUtil defines Apache::RequestRec::is_initial_req(). the end result is that you can have the Perlish $r->is_initial_req() instead of the b