#537: Parrot::Interpreter - crash when calling new twice
---------------------+------------------------------------------------------
Reporter: szabgab | Owner:
Type: bug | Status: new
Priority: normal | Milestone:
Component: none | Version: trunk
Severity: medium | Keywords:
Lang: | Patch:
Platform: |
---------------------+------------------------------------------------------
Changes (by jkeenan):
* cc: jkeenan (added)
Comment:
Replying to [ticket:537 szabgab]:
> If I call Parrot::Interpreter->new twice in the same script it
> gives me a crash that I cannot catch in perl.
>
I am not familiar with `Parrot::Interpreter`, but while reviewing old Trac
tickets I came upon this one and decided to look at that package (''ext
/Parrot-Embed/lib/Parrot/Interpreter.pm''). Its documentation says:
{{{
SYNOPSIS
# the first interpreter created in the program
my $interp = Parrot::Interpreter->new();
# all subsequent interpreters need a parent
my $child_interp = $interp->new( $interp );
}}}
So it seems to be me that you '''should not''' be trying to call
`Parrot::Interpreter->new()` twice in a program.
Whether this is a good design is, of course, debatable. But will your
programs work if you create child interpreters?
Thank you very much.[[BR]]
kid51
--
Ticket URL: <https://trac.parrot.org/parrot/ticket/537#comment:1>
Parrot <https://trac.parrot.org/parrot/>
Parrot Development
_______________________________________________
parrot-tickets mailing list
[email protected]
http://lists.parrot.org/mailman/listinfo/parrot-tickets