On Wed Oct 05 14:29:01 2011, moritz wrote:
> fixed in d3e651975ac334d18d8200f0270a817570d550af -- giving back to you
> for test coverage :-)
Test added in S03-operators/arith.t -- resolving ticket.
On Wed Oct 05 14:00:13 2011, masak wrote:
> perl6: say -Int
> rakudo ff78b5: OUTPUT«Cannot unbox type object to a native
> integer in sub prefix:<-> [...]
> ..pugs, niecza v10-38-g23f1b2e: OUTPUT«0»
> * masak submits rakudobug
>
> I think -Int should work and yield 0 without an error or warn
# New Ticket Created by "Carl Mäsak"
# Please include the string: [perl #100768]
# in the subject line of all future correspondence about this issue.
# https://rt.perl.org:443/rt3/Ticket/Display.html?id=100768 >
perl6: say -Int
rakudo ff78b5: OUTPUT«Cannot unbox type object to a native
inte
# New Ticket Created by Moritz Lenz
# Please include the string: [perl #100758]
# in the subject line of all future correspondence about this issue.
# https://rt.perl.org:443/rt3/Ticket/Display.html?id=100758 >
18:38 < felher> nom: my @array = 1,2,3; @array = @array
18:38 < felher> problem kn
On 10/5/2011 3:40 AM, Mark J. Reed wrote:
In 'A.foo', is the invocant really "of class A"? I mean, given that it *is*
class A...
No, it's not "class A", or some kind of class object - those don't exist
in Perl 6. It's an empty instance of class A, so the error message is
appropriate. The invoc
# New Ticket Created by "Carl Mäsak"
# Please include the string: [perl #100746]
# in the subject line of all future correspondence about this issue.
# https://rt.perl.org:443/rt3/Ticket/Display.html?id=100746 >
nom: my $t = q[%foo% %bar% %foo% %baz%]; my %b = foo => 1, bar
=> 2, baz => 3; $
Short answer: yes.
Long answer: a type object such as "A" is considered to be something
of an "empty instance" of its own type in Rakudo. That way, you can
use them as "real instances" in many ways, except that they are
undefined and you're not allowed to do anything with any attributes.
// Carl