petdance/scratch — Issue #378: :instanceof('Foo') is untested
Author: petdance
Created: 2011-11-01 04:25:50+00:00
State: open

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.