On Mon Sep 19 21:43:52 2011, coke wrote:
> On Wed Jun 30 07:48:56 2010, masak wrote:
> > <masak> rakudo: say "abcd".index("xyz") == 0
> > <p6eval> rakudo aa015a: OUTPUT�Method 'Bridge' not found for invocant
> > of class 'Failure' [...]
> > <masak> arnsholt: possible issue :)
> > * masak submits rakudobug
> > <masak> rakudo: Failure == 0
> > <p6eval> rakudo aa015a: OUTPUT�Method 'Bridge' not found for invocant
> > of class [...]
> > * masak is not sure he likes .Bridge :/
> >
> > Might be that comparing Failure (or any non-numeric type object, for
> > that matter) with any number should give a warning or something, but
> > it should not give this error.
>
> It now warns:
>
> 00:43 < [Coke]> rakudo: say "abcd".index("xyz") == 0
> 00:43 <+p6eval> rakudo cbdd9b: OUTPUT«Use of uninitialized value in numeric
> contextBool::True»
>
>
Current behavior:
> say +Failure
Parameter '' requires an instance, but a type object was passed
> say "abcd".index("xyz") == 0
Parameter '' requires an instance, but a type object was passed
> Failure == 0
use of uninitialized variable $max of type Failure in numeric context
False
--
Will "Coke" Coleda