[snipped]
> 1: What does pmc_type return if it fails to find a PMC?
> 2: If that answer is 0, is it safe to document that 0 is a failure return,
>    which happens to map to the PMC type for "default", but as they can't be
>    instantiated looking up "default" is "not supported" (or words to that
>    effect)
> 
> 
> Nicholas Clark
> 

A related but different issue is that abstract pmcs like (Scalar
and PerlScalar) have no pmc_type. I understand that pmc_type are
an offset in the table of pmc vtables and that we probably cannot
have holes in that table. Nevertheless it would be nice for these
abstract pmcs to have a pmc_type; say for base type pmc checking in
imcc or some related tools.

I think one of the constraint is that the pmc type numbers must
not overlap the values in PARROT_DATA_TYPES.

--
 stef

Reply via email to