On 4/7/06, Adam Kennedy <[EMAIL PROTECTED]> wrote:
> Just because I (repeatedly) attack chromatic over UNIVERSAL::isa/can
> nobody should be under the impression that using the functions directly
> is in any way a good thing.
>
> The only cases for which it's genuinely useful is asking "ignoring what
> you say you are in OO terms, what are you actually implemented as
> underneath".

The only advantage I can think of using the function form of isa/can
is that you dont have to do a ref test first. Or if you want to find
out if a module is lying to you about what it isa/can do. But its not
actually that useful to find out how the module is implemented
underneath, nor is that useful for finding out how an object can be
used/dereferenced.

Actually afaik there is no good way to find out what dereferencing
operators an object supports. The best that I know of is reftype(),
but that only tells you the objects underlying intrinsic type, it
doesnt tell you if you can dereference the type other ways.

Yves


--
perl -Mre=debug -e "/just|another|perl|hacker/"

Reply via email to