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

RE: marking can() coderef as a method

Thread Previous | Thread Next
Geoffrey Young
August 24, 2001 05:42
RE: marking can() coderef as a method
Message ID:

> -----Original Message-----
> From: Michael G Schwern []
> Sent: Friday, August 24, 2001 8:19 AM
> To: Geoffrey Young
> Cc: ''
> Subject: Re: marking can() coderef as a method
> 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

ah, I was wondering about the origin of that.  

> it would be a lot easier to just use the attributes
> module than XS code.

well, the effect I wanted requires XS, since XS will be calling the coderef
- it was attaching CVf_METHOD to the reference that was causing me grief.

turns out attributes were exactly what I was after.  problem solved - thanks


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