#1764: Infinite loop in exit handler
------------------------+---------------------------------------------------
Reporter: nwellnhof | Owner: whiteknight
Type: todo | Status: closed
Priority: normal | Milestone:
Component: core | Version: trunk
Severity: high | Resolution: wontfix
Keywords: exceptions | Lang:
Patch: | Platform: all
------------------------+---------------------------------------------------
Changes (by whiteknight):
* status: assigned => closed
* resolution: => wontfix
Comment:
I'm going to close this ticket as "WONTFIX". Here's why: First, there's no
real way that the program knows that this is an "exit handler" as opposed
to any other type of handler. Second, Parrot does legitimately allow the
use of exceptions for control flow, including use in loops. The correct
way to write an exception handler is a label, likely followed immediately
by a 'pop_eh'. If you include a 'pop_eh' in this example, it doesn't loop
forever and terminates as we expect.
This is the design of the subsystem. If we want to change the design
that's one thing, but right now this isn't a problem.
--
Ticket URL: <https://trac.parrot.org/parrot/ticket/1764#comment:13>
Parrot <https://trac.parrot.org/parrot/>
Parrot Development
_______________________________________________
parrot-tickets mailing list
[email protected]
http://lists.parrot.org/mailman/listinfo/parrot-tickets