# New Ticket Created by  "jason switzer" 
# Please include the string:  [perl #67374]
# in the subject line of all future correspondence about this issue. 
# <URL: http://rt.perl.org/rt3/Ticket/Display.html?id=67374 >


(21:38:19) s1n: rakudo: die
(21:38:24) p6eval: rakudo 70bfd5: OUTPUT«No applicable methods.␤in Main
(/tmp/VO5JK3sPoh:2)␤»
(21:38:35) s1n: hmm, bug?
(21:38:37) TimToady: you didn't give it an argument
(21:39:06) TimToady: so it didn't match any signatures
(21:39:18) s1n: it won't just die like p5?
(21:40:19) TimToady: rakudo: ...
(21:40:21) p6eval: rakudo 70bfd5: OUTPUT«Can't return outside a routine␤in
Main (/tmp/hl05fbXGmv:2)␤»
(21:40:29) TimToady: O_O
(21:40:53) TimToady: rakudo: fail
(21:40:58) p6eval: rakudo 70bfd5: OUTPUT«Can't return outside a routine␤in
Main (/tmp/tzqz3NQArU:2)␤»
(21:41:18) s1n: rakudo: exit
(21:41:21) p6eval: rakudo 70bfd5:  ( no output )
(21:41:42) TimToady: rakudo: .die
(21:41:45) p6eval: rakudo 70bfd5: OUTPUT«Method 'die' not found for invocant
of class 'Failure'␤»
(21:41:58) TimToady: now that's funny
(21:43:04) TimToady: rakudo: $!.die
(21:43:07) p6eval: rakudo 70bfd5: OUTPUT«Method 'die' not found for invocant
of class 'Failure'␤»
(21:45:55) TimToady: s1n: so yes, die without arg is supposed to work, and
there's a rakudo bug
(21:46:02) TimToady: specced to default to $!
(21:46:33) ***s1n files rakudobug
(21:46:46) TimToady: S04:1062

Seems that die and fail methods called without parameters are not properly
dispatching with $! as the parameter. Interestingly enough '...' causes the
same problem, which might not be the proper action/error.

Note: this was mildly edited to remove unrelated IRC chatter.

-Jason "s1n" Switzer

Reply via email to