Skip to content

Commit cdb9fe2

Browse files
committed
LEAVE a simple example behind
1 parent f5f1ddd commit cdb9fe2

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

doc/Language/phasers.pod6

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -277,6 +277,12 @@ stack is unwinding, the unwinding continues and collects exceptions to be
277277
handled. When the unwinding is completed all new exceptions are thrown from
278278
that point.
279279
280+
sub answer() {
281+
LEAVE say „I say after the return value.“;
282+
283+
42 # this is the return value
284+
}
285+
280286
=head2 X<KEEP|Phasers>
281287
282288
Runs at every successful block exit, as part of the LEAVE queue (shares the

0 commit comments

Comments
 (0)