isa(out INT, in PMC, im STR) # set $1 to 1 if class $2 isa $3.
isa(out PMC, in PMC)
# set $1 to a const array containing $2's classes (parent first)
new P0, .PerlArray
isa P1, P0 # ("PerlArray", "Array", "array")
The last entry ("array") is generated by the system out of some flags.
This is the general type of the PMC (e.g. array, hash, sub, scalar,
struct), so that code like this works:
new P5, .PerlArray
invoke
...
isa I0, P5, "array"
if I0, yep_has_array_interface
Comments welcome
leo
> new P5, .PerlArray
> invoke
> ...
> isa I0, P5, "array"
> if I0, yep_has_array_interface
I would expect 'does' instead of 'isa'. Perhaps I missed Dan's
explanation of the difference between 'can', 'isa', and 'does'. Maybe
I'm thinking of 'has', though.
-- c
Though I'm not familiar with the answer that's "official" for Parrot, but
perhaps "does" should be an alias for "has" as it applies to methods.
---
Outgoing mail is certified Virus Free.
Checked by AVG anti-virus system (http://www.grisoft.com).
Version: 6.0.509 / Virus Database: 306 - Release Date: 8/12/2003