[perl #117217] [BUG] '...' and '???' forms of stub code escape 'try' statement in Rakudo

2013-03-18 Thread Carl Mäsak
# New Ticket Created by  Carl Mäsak 
# Please include the string:  [perl #117217]
# in the subject line of all future correspondence about this issue. 
# URL: https://rt.perl.org:443/rt3/Ticket/Display.html?id=117217 


diakopter should try trap stub code executed?
masak rn: try !!!; say alive
p6eval rakudo 2a41b3, niecza v24-35-g5c06e28: OUTPUT«alive␤»
masak diakopter: I don't see why not.
diakopter rn: try ...; say alive
p6eval rakudo 2a41b3: OUTPUT«Stub code executed␤current instr.: 'throw' [...]
p6eval ..niecza v24-35-g5c06e28: OUTPUT«alive␤»
diakopter rn: try ???; say alive
p6eval rakudo 2a41b3: OUTPUT«Stub code executed  in block  at
/tmp/fUkwbTNwFT:1␤␤alive␤»
p6eval ..niecza v24-35-g5c06e28: OUTPUT«alive␤»
masak I think neither ... nor ??? should emit anything.
masak aka Niecza is right twice.
* masak submits rakudobug


[perl6/specs] 2be530: (S32/Exceptions) Add X::Range::InvalidArg excepti...

2013-03-18 Thread GitHub
  Branch: refs/heads/master
  Home:   https://github.com/perl6/specs
  Commit: 2be530687ec3e11c211d1971830b4044b5439128
  
https://github.com/perl6/specs/commit/2be530687ec3e11c211d1971830b4044b5439128
  Author: pmichaud pmich...@pobox.com
  Date:   2013-03-16 (Sat, 16 Mar 2013)

  Changed paths:
M S32-setting-library/Exception.pod

  Log Message:
  ---
  (S32/Exceptions)  Add X::Range::InvalidArg exception.





[perl #117217] [BUG] '...' and '???' forms of stub code escape 'try' statement in Rakudo

2013-03-18 Thread Carl Mäsak via RT
jnthn ??? should warn.
jnthn ... should fail
jnthn The fail leaks out of the try
jnthn er, or either way the fail is in sink context
jnthn a fail in sink context throws.
jnthn ??? is correct in Rakudo
jnthn ... is debatable there; I think the current spec says that try 
sinks everything inside of it, in which case it shoulda sunk, failed 
inside the try, and been quiet.
* masak adds jnthn's comments to the ticket
TimToady try only sinks the inside if the outside is sunk, otherwise 
it's eager
jnthn TimToady: oh...
jnthn masak: So seems it's just try ... that is in question in Rakudo, 
not ??? :)
masak nod.
masak I'll change the bug title too.
TimToady S04:1000
jnthn *nod*