[perl #112822] [BUG] Large enough decimal numbers lose precision in Rakudo

2012-05-08 Thread Carl Mäsak via RT
On Tue May 08 14:35:44 2012, masak wrote: > r: say 241025348275725.3352 > rakudo 415791: OUTPUT«241025348164334␤» > ah. > bug? > absolutely > * masak submits rakudobug Is it not just different levels of precision when the Rat is converted to a Num for printing? Niecza normally gets a few m

[perl #112822] [BUG] Large enough decimal numbers lose precision in Rakudo

2012-05-08 Thread Carl Mäsak
# New Ticket Created by "Carl Mäsak" # Please include the string: [perl #112822] # in the subject line of all future correspondence about this issue. # https://rt.perl.org:443/rt3/Ticket/Display.html?id=112822 > r: say 241025348275725.3352 rakudo 415791: OUTPUT«241025348164334␤» ah. bug?

Re: Is rindex broken or does my brain need a reboot?

2012-05-08 Thread Frederik Schwarzer
Am Dienstag, 8. Mai 2012, 15:28:12 schrieb Patrick R. Michaud: > On Tue, May 08, 2012 at 01:02:24AM -0700, Stefan O'Rear wrote: > > On Tue, May 08, 2012 at 05:19:40AM +0200, Frederik Schwarzer wrote: > > > Hi, > > > > > > I had a little problem with rindex and wrote a small demo code > > > that s

Re: Is rindex broken or does my brain need a reboot?

2012-05-08 Thread Patrick R. Michaud
On Tue, May 08, 2012 at 01:02:24AM -0700, Stefan O'Rear wrote: > On Tue, May 08, 2012 at 05:19:40AM +0200, Frederik Schwarzer wrote: > > Hi, > > > > I had a little problem with rindex and wrote a small demo code that > > shows what I found. > $ install/bin/perl6 -e 'say "perł".rindex("e");' perl >

Re: [perl #112810] package confuses newly declared class with buildin

2012-05-08 Thread Wenzel Peppmeyer
On Tue, 8 May 2012, jn...@jnthn.net via RT wrote: On Mon May 07 16:21:12 2012, gfldex wrote: package A { class Str {}; our sub foo() { return Str.new } } This type cannot box a native string Run it with -e and you see it's actually a compile-time error too: ===SORRY!=== This type cannot

[perl #112818] [BUG] rindex fails for unicode strings

2012-05-08 Thread via RT
# New Ticket Created by Patrick R. Michaud # Please include the string: [perl #112818] # in the subject line of all future correspondence about this issue. # https://rt.perl.org:443/rt3/Ticket/Display.html?id=112818 > As reported on the perl6-compiler mailing list: pmichaud@kiwi:~/p6/rak

[perl6/specs] 007993: [S14] use :U instead of "where {!.defined}"

2012-05-08 Thread GitHub
Branch: refs/heads/master Home: https://github.com/perl6/specs Commit: 00799304600458dd6a37995f2884146cf28593ec https://github.com/perl6/specs/commit/00799304600458dd6a37995f2884146cf28593ec Author: Moritz Lenz Date: 2012-05-08 (Tue, 08 May 2012) Changed paths: M S14-ro

Re: Is rindex broken or does my brain need a reboot?

2012-05-08 Thread Stefan O'Rear
On Tue, May 08, 2012 at 05:19:40AM +0200, Frederik Schwarzer wrote: > Hi, > > I had a little problem with rindex and wrote a small demo code that > shows what I found. > > The code is: > use v6; > > my $string = "perl"; > say $string; > say $string.WHAT; > say $string.index("e"); > say $string.rind