Rob Dixon wrote:

> R. Joseph Newton wrote:
> >
> > Dan Muey wrote:
> >
> > >
> > >
> > > Basically I use the ParentName's $obj inside my functions
> > > and they are expecting it as the first arg.
> > >
> > > $obj->MyModule::function($arg); would be the coolest way
> > > (leaving my functions as sub function instead of sub
> > > NameSpace::Evil::function)
> > >
> > > Is this possible or am I just batty!?
> > >
> >
> > Absolutely on the mark!  Bravo!
> >
> > Then catch it in the function with:
> > my $self = shift;
>
> [snip]
>
> Do you mean what you say Joseph?
>
>   $obj->MyModule::function($arg)
>
> Whether MyModule is the base class or the subclass it goes
> against all principles of inheritance. $obj knows its own
> class, and a call to $obj->function() will pick the correct
> definitian of function() according to that class. Fully
> qualifying the function identifier makes nonsense of calling
> it via an object.
>
> Or am I missing something?
>
> Cheers,
>
> Rob

No-o-o-o, I was missing something--the package name still hanging
onto the function name.  Sorry, I sometimes just don't see what I
would never think of looking for.  All I saw was the object
pointing to its method.  Shoulda looked closer before I clapped.

Joseph


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

Reply via email to