petdance/scratch — Issue #836: :instanceof('Foo') is untested
Author: petdance
Created: 2011-11-14 06:02:00+00:00
State: open
Labels: imcc, Pri-normal, Sev-medium, todo

imcc has a little-known sub modifier that causes a Sub to be created as an alternate PMC type. The one place it's documented, PDD19, contains the following description:
The C<:instanceof> pragma is an experimental pragma that creates a sub as a PMC type other than 'Sub'. However, as currently implemented it doesn't work well with C<:outer> or existing PMC types such as C, C, etc.

This needs to be added to DEPRECATED.pod as an officially experimental feature and, more importantly, needs to be tested.

Originally http://trac.parrot.org/parrot/ticket/1962