develooper Front page | perl.perl6.internals | Postings from February 2008

does vtable method - does_pmc too?

Thread Next
From:
Jonathan Worthington
Date:
February 26, 2008 14:06
Subject:
does vtable method - does_pmc too?
Hi,

We have for testing isa relationships both:

INTVAL isa_pmc(PMC* lookup)
INTVAL isa(STRING* _class)

However for the does test, we have just:

INTVAL does(STRING* method)

I'm thinking we should have a does_pmc variant too? Also, I'm not sure 
why the name of the string taken there is method, since does tests for 
what roles are done, and can is for testing if a certain method is 
supported.

Thanks,

Jonathan


Thread Next


Comments to Ask Bjørn Hansen at ask@perl.org | Group listing | About