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

Re: marking can() coderef as a method

Thread Previous | Thread Next
Michael G Schwern
August 24, 2001 05:18
Re: marking can() coderef as a method
Message ID:
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   <>
Perl6 Quality Assurance     <>	     Kwalitee Is Job One
Now I fight for wisdom.

Thread Previous | Thread Next Perl Programming lists via nntp and http.
Comments to Ask Bjørn Hansen at | Group listing | About