in reply to Re: Tracking Inheritance Directly due to Hybrid Methods
in thread Tracking Inheritance Directly due to Hybrid Methods
what's wrong with calling the public constructor for Time::Piece from within the constructor of your subclass (thereby providing an instance to _mktime), and then reblessing the reference returned into your current package?I'd love to, but it's not that simple.
It's worth noting as well that unless the documentation explicitly guards against it, you're perfectly free to interpret this as a "protected" method, which as a subclass your module may legitimately override.Good point, I feel better about that then.
Now, granted, if they're functions then they'll expect to be called on a class name, not on a reference to a class instance, ...This still passes the class name as a first argument -- as I mentioned, if the first argument is present and not a reference, then it expects it to be a scalar count of seconds since epoch, not a string representing the calling class name.
Matt
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Re: Re: Tracking Inheritance Directly due to Hybrid Methods
by djantzen (Priest) on Jul 25, 2002 at 21:49 UTC | |
by mojotoad (Monsignor) on Jul 25, 2002 at 22:04 UTC |