Using find/grep to find calls to "new 'Failure'" in the current (non-
generated) rakudo code base I came up with the short list below.  They 
all seem to represent legitimate cases of wanting to allocate a Failure 
object to return an undef type value like an index search that fails to 
find its search string.

Suggesting the possible closing of this ticket.

src/builtins/any-str.pir:184:    $P0 = new 'Failure'
src/builtins/any-str.pir:246:    $P0 = new 'Failure'
src/builtins/control.pir:59:    $P1 = new 'Failure'
src/builtins/control.pir:379:    exception = new 'Failure'
src/builtins/io.pir:25:    $P0 = new 'Failure'
src/classes/Failure.pir:59:    $P0 = new 'Failure'
src/classes/Nil.pir:55:    $P0 = new 'Failure'

Reply via email to