|
Re: pmc_type: msg#00550lang.perl.perl6.internals
Stéphane Payrard <stef@xxxxxxxxxxx> wrote: > 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. Isn't really needed: $ find t -name '*.t' | xargs grep -w isa ... t/pmc/objects.t: isa I0, P1, "scalar" ... Having a type enum for these abstract types would imply to install a vtable, filled with methods that catch errors. > I think one of the constraint is that the pmc type numbers must > not overlap the values in PARROT_DATA_TYPES. If you mean the struct _data_types data_types[] list of "native" types, yes - they don't overlap, these are all negative numbers. > -- > stef leo |
|
| <Prev in Thread] | Current Thread | [Next in Thread> |
|---|---|---|
| Previous by Date: | Re: pmc_type: 00550, Leopold Toetsch |
|---|---|
| Next by Date: | Re: analogy pmc/content with inode/file: 00550, Leopold Toetsch |
| Previous by Thread: | Re: pmc_typei: 00550, Stéphane Payrard |
| Next by Thread: | Re: pmc_type: 00550, Stéphane Payrard |
| Indexes: | [Date] [Thread] [Top] [All Lists] |
| News | FAQ | advertise |