On Fri Aug 13 13:55:11 2010, lithos wrote:
> ".not" and ".so" are still missing in current Rakudo:
> 
> $ ./perl6
> > True.so
> Method 'so' not found for invocant of class 'Bool'
> > True.not
> Method 'not' not found for invocant of class 'Bool'
> > 1.so
> Method 'so' not found for invocant of class 'Int'
> > 1.not
> Method 'not' not found for invocant of class 'Int'
> 
> 
> This is Rakudo Perl 6, version 2010.07-113-gc41bcd7 built on parrot
> 2.6.0 r48341
> 
> 
> #perl 2010-08-13
> > should "not" be available as a method? there is a ticket about it, 
but I
> +don't find it in the spec
> <masak> lithos: I've always figured both .so and .not are available as
> +methods.
> <masak> I might be wrong, though.
> <masak> .so is mentioned in S12. from that I deduce by symmetry that 
.not
> +should be there too, even though it's not mentioned.
> 
> 
> (This is the ticket I was referring to in my question.)

Closer...

08:48 < [Coke]> rakudo: say True.so;
08:48 <+p6eval> rakudo 7408d6: OUTPUT«Bool::True␤»
08:48 < [Coke]> rakudo: say True.not;
08:48 <+p6eval> rakudo 7408d6: OUTPUT«Method 'not' not found for 
invocant of
                class 'Bool'␤  in block <anon> at /tmp/8Na9f0JyUp:1␤  
in <anon>
                at /tmp/8Na9f0JyUp:1␤␤»


-- 
Will "Coke" Coleda

Reply via email to