develooper Front page | perl.perl5.porters | Postings from June 2013

[perl #77256] sv_does is broken

From:
James E Keenan via RT
Date:
June 17, 2013 01:24
Subject:
[perl #77256] sv_does is broken
Message ID:
rt-3.6.HEAD-2552-1371432240-330.77256-15-0@perl.org
On Mon Aug 16 16:02:16 2010, ben@morrow.me.uk wrote:
> The API function sv_does is broken, and has been since it was first
> introduced. What it actually implements is a correct Perl-level ->isa
> check, which is useful, but not the same as a ->DOES check.
> 
> The logic currently in Perl_sv_does for checking ->isa should be moved
> into XS_UNIVERSAL_DOES, and Perl_sv_does itself should just do a normal
> ->DOES method call. (The checks for 'is this an object' should probably
> stay.)
> 
> It might be useful to add a sv_perl_isa API, which does a proper
> overridable ->isa check, but that is a separate question.
> 
> Ben
> 


I reviewed this older ticket tonight.  What I quote above was the
original post.  Discussion continued from August 2010 to June 2012, but
at no point was a patch submitted.  The discussion was of the kind that
we have a lot of on the p5p mailing list and probably should have been
conducted there.

I would like to ask those who posted to review their comments and, as
appropriate, either (a) post on p5p; or (b) open new RT tickets *with
patches*.

I am taking this ticket for the purpose of closing it within 7 days
unless someone wishes to take it over and move the discussion forward.

Thank you very much.
Jim Keenan

---
via perlbug:  queue: perl5 status: open
https://rt.perl.org:443/rt3/Ticket/Display.html?id=77256



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