One problem was that if you pass in something which inherits from Apache2::Connection you'd expect it to work. However if the object overrides foo() it will be ignored, which is probably not what you want to happen. A bit like static methods in C++,
F On 8/17/05, Stas Bekman <[EMAIL PROTECTED]> wrote: > A few years ago Doug MacEachern started to write code like: > > my Apache2::Connection $c = shift; > $c->foo; # should be already resolved > > i.e. adding an explicit class name before the object. If I remember > correctly he was saying that perl was supposed to optimise method lookups > at compile-time. My question is: does it really work or is it still a > wannabe? and if the latter what are the plans for making it really work? > > Thanks. > > -- > __________________________________________________________________ > 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 >