develooper Front page | perl.perl6.language | Postings from June 2001

Re: Per-object inheritance in core a red herring?

Thread Previous | Thread Next
From:
John Porter
Date:
June 29, 2001 15:36
Subject:
Re: Per-object inheritance in core a red herring?
Message ID:
20010629183631.A28654@min.net
schwern@pobox.com wrote:
> "Any sufficiently encapsulated hack is no longer a hack."

Who said that?  I think it's wrong.

Any sufficiently encapsulated hack is no longer a *naked* hack.  So what.


> You shouldn't be relying on an object's reference.  ref $obj eq
> 'Some::Class' wrecks subclassing, 

ref($a) eq ref($b).


> What's the trade-off here?  It works, its efficient, the hacks are
> well encapsulated.

Having it in the core, in C[++], would be that much more efficient,
and that much less of a hack.  Maybe the tradeoff is that it
wouldn't work.  :-)

-- 
John Porter


Thread Previous | Thread Next


nntp.perl.org: Perl Programming lists via nntp and http.
Comments to Ask Bjørn Hansen at ask@perl.org | Group listing | About