On Fri, Apr 15, 2005 at 05:14:29PM -0700, Yitzchak Scott-Thoennes wrote:
> On Fri, Apr 15, 2005 at 07:44:05PM +0100, Nicholas Clark wrote:
> > And leave it blessing everything into IO::Handle, rather than trying to
> > get clever with IO::Seekable or even IO::File from open.
> 
> Unfortunately, IO::Seekable isn't even a subclass of IO::Handle.
> 
> > Part of me wonders whether to dump the whole damn thing and stop making
> > globs pretend to be blessed. If people want OO, they have bless or ->new()
> 
> That would be nice.  But I think we'd get maximum backward
> compatibility with minimum code complexity if we made it auto-bless
> globs into a new class IO::GlobHandle (with no actual .pm file) and
> set (at perl startup) @IO::GlobHandle::ISA to IO::Handle,
> IO::Seekable, and FileHandle (in that order).
> 
> So ->seek would work so long as either IO::Seekable or FileHandle
> were loaded by the time the method was actually called.  I would
> think that would even be appropriate for maint.

I won't have time to work on such a patch for a few weeks, but was
hoping to hear some feedback on the idea...

Reply via email to