David Whipp wrote:
> 
> Mark J. Reed wrote:
> > On Wed, Apr 10, 2002 at 10:30:25AM -0700, Glenn Linderman wrote:
> > > method m1
> > > {
> > >    m2;  # calls method m2 in the same class
> > Yes, but does it call it as an instance method on the current invocant
> > or as a class method with no invocant?  If the former, how would you
> > do the latter?
> 
> I would expect the the "m2()" call would use the invocant of m1.
> If m1 is a called as a class method, then m2 would, also.
> 
> If every object has a C<class> method (C<ref>?), then you could
> always call class-methods as class.m2().
> 
> Dave.

Thanks, Dave, that's an excellant idea.

-- 
Glenn
=====
Remember, 84.3% of all statistics are made up on the spot.

Reply via email to