petdance/scratch — Issue #396: Subclassing FileHandle
Author: petdance
Created: 2011-11-01 04:25:54+00:00
State: open

This PIR:
{{{
.sub test :main
$P0 = subclass 'FileHandle', 'TempFileHandle'
$P1 = new 'TempFileHandle'
.end
}}}
Produces:
{{{
Handle cannot be instantiated directly.
}}}
(from Handle.pmc:42)