On Thu, Jul 19, 2001 at 11:31:20PM +0100, Mark Maunder wrote:
> But I still want to know if __PACKAGE__ (or blesssing a temp object into
> the current package) is the best way of ensuring that the called method is
> passed an object of the callers type.

It isn't.  __PACKAGE__ isn't an object, it's a string.  Reblessing an object
changes the class of the object, which affects anything that uses that
object, including the calling code.

I don't know if there is a good way of passing an object of the caller's
type.  I'm not even sure there's a situation that requires it, that
shouldn't be designed some other way.


Michael
--
Administrator                      www.shoebox.net
Programmer, System Administrator   www.gallanttech.com
--

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

Reply via email to