perl6/doc/lib/X/ControlFlow

doc src
(title) class X::ControlFlow
    class X::ControlFlow is Exception { }

 
Thrown when a control flow construct (such as next or redo ) is called outside the dyanmic scope of an enclosing construct that is supposed to catch them. For example
    last

 
dies with
    last without loop construct

 

Methods

(head2) illegal
    method illegal returns Str:D

 
Returns the name of the control flow command that was called.
(head2) enclosing
    method enclosing returns Str:D

 
Returns the name of the missing enclosing construct.

Perl 6 Tricks and Treats newsletter

Register to the free newsletter now, and get updates and news.
Email:
Name: