develooper Front page | perl.perl5.porters | Postings from August 2001

Re: marking can() coderef as a method

Thread Previous | Thread Next
From:
Michael G Schwern
Date:
August 24, 2001 05:18
Subject:
Re: marking can() coderef as a method
Message ID:
20010824081837.A17957@blackrider
On Fri, Aug 24, 2001 at 08:08:10AM -0400, Geoffrey Young wrote:
>   cv = sv_2cv(sv, &stash, &gv, FALSE);
>   if (cv && (CvFLAGS(cv) & CVf_METHOD)) {

Seeing as how the CVf_METHOD flag only gets set if the 'method'
attribute is used, it would be a lot easier to just use the attributes
module than XS code.

Look at the version of can() I showed Mark.

-- 

Michael G. Schwern   <schwern@pobox.com>    http://www.pobox.com/~schwern/
Perl6 Quality Assurance     <perl-qa@perl.org>	     Kwalitee Is Job One
Now I fight for wisdom.
	http://sluggy.com/d/010204.html

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