Jonathan Worthington wrote:
What should happen: Class manufactures an object and init and init_pmc
of Object both throw exceptions. That means creating a new Object PMC
in the new method of Class using pmc_new_noinit (IIRC) and setting up
its guts from within Class.
Implemented this now, and in
Alek Storm (via RT) wrote:
The following code causes a segfault:
.sub main :main
$P0 = new "Object"
$P0.'foo'()
.end
This is because the vtable methods in Object assume a valid pointer to
the object's internal representation, which is only initialized in
init_pmc.
That probably has to chang
# New Ticket Created by "Alek Storm"
# Please include the string: [perl #42547]
# in the subject line of all future correspondence about this issue.
# http://rt.perl.org/rt3/Ticket/Display.html?id=42547 >
The following code causes a segfault:
.sub main :main
$P0 = new "Object"
$P0.'foo'()