On Tue Mar 23 08:11:23 2010, masak wrote: > <masak> rakudo: say ~(my $a) > <p6eval> rakudo db0f85: OUTPUT«Any()» > <masak> moritz_: were you saying this should generate a warning? > <moritz_> masak: I think so... the specs are rather quiet on warnings > * masak submits rakudobug > <masak> Justin Case. > <moritz_> rakudo: say +(my $a) > <p6eval> rakudo db0f85: OUTPUT«Use of type object as value in numeric > context [...] > * moritz_ tries to remove that error altogether > <masak> I think it'd merit a warning, but not an error. > <moritz_> the current implementation tries to be very clever > <moritz_> it does a FAIL() > <moritz_> but the coercion to Int on the failure object immediatly > throws the exception that's supposed to remain unthrown for now
15:45 < [Coke]> rakudo: say ~(my $a) 15:45 <+p6eval> rakudo 012e26: OUTPUT«Use of uninitialized value in string context» 15:46 < [Coke]> rakudo: say +(my $a) 15:46 <+p6eval> rakudo 012e26: OUTPUT«Use of uninitialized value in numeric context0» We complain now. need tests. -- Will "Coke" Coleda