> On Mon, Feb 04, 2002 at 04:23:51PM -0500, Ilya Zakharevich wrote: > > > That information is already easily available at run-time, just look at > > > the class's symbol table. > > > > Hmm? So you found AUTOLOAD there. Now what? > > Now a human steps in and looks at the code to figure out AUTOLOAD's > effect. Ditto eval STRING, symbol table hackery and @ISA muckery.
In other words, there information *is not* "easily available at run-time". > > What about extending $class->can( qr// )? > > That would require significant alterations to the AUTOLOAD protocol. > perl6-language is down the hall, third door on your right. Hmm? All it requires is to change UNIVERSAL::can() to check for a REx, and scan the symbol table if needed. Then if a module wants run-time conscience in presense of run-time effects, it would just define its own ->can(). Hope this helps, Ilya
