[perl #126581] [BUG] cannot call multis in the same class with .*

2015-11-06 Thread via RT
# New Ticket Created by # Please include the string: [perl #126581] # in the subject line of all future correspondence about this issue. # https://rt.perl.org/Ticket/Display.html?id=126581 > calling multis in the same class with .* doesn't work: 22:10 raydiak m: class C { multi method m

combine hashes

2015-11-06 Thread Marc Chantreux
hello, using perl6 version 2015.09 built on MoarVM version 2015.09, i'm trying to create a hash with a slice of another one and some extra pairs. as exemple: my %x = < login jdoe first john last doe >; my %y = :enable, |( %x< login first >.kv); gives 0 => jdoe, 1 => john, enable

Re: combine hashes

2015-11-06 Thread Moritz Lenz
Hi, On 11/07/2015 02:45 AM, Marc Chantreux wrote: > hello, > > using perl6 version 2015.09 built on MoarVM version 2015.09, > i'm trying to create a hash with a slice of another one and some extra > pairs. as exemple: > > my %x = < login jdoe first john last doe >; > my %y = :enable,

[perl #126476] [BUG] non-matching S/// should return unmodified string

2015-11-06 Thread Larry Wall via RT
Fixed in 9e4902f772b0e86fe96771b22039aaf1a57fae34

Re: [perl #126560] $*USER and $*GROUP don't update when uid/gid change

2015-11-06 Thread Elizabeth Mattijsen
> On 04 Nov 2015, at 01:53, Cory Spencer (via RT) > wrote: > > # New Ticket Created by Cory Spencer > # Please include the string: [perl #126560] > # in the subject line of all future correspondence about this issue. > #

[perl #123673] Rakudo silently loses information on .encode for non-representable characters

2015-11-06 Thread jn...@jnthn.net via RT
On Sun Jan 25 07:35:58 2015, moritz wrote: > m: say 'ö'.encode('ASCII') > rakudo-moar 7e8d8a: OUTPUT«Blob[uint8]:0x<3f>␤» > that looks like a bug to me > > Since ö isn't representable as ASCII, this should throw an exception. > Currently it encodes to 0x37, which is the question mark /

A tutorial on ENUMs?

2015-11-06 Thread Richard Hainsworth
Hi, Trying to use an enum. Can't easily find out how to use them. Looked in both design documents and in the language documents page. I can't seem to get the examples in the design documents to work. So I seem to be missing something. I got the following to work, and I thought enum was

Re: A tutorial on ENUMs? - look up enum symbol by name

2015-11-06 Thread Timo Paulssen
On 06/11/15 06:50, Richard Hainsworth wrote: I'm trying to do something like the following: sub MAIN ( Str :$sort = 'simple') { my enum SortOrder ; my @array-of-three; ... my @ordered = @array-of-three.sort(*.[ SortOrder($sort) ] ); ... } Hi Richard, SortOrder($foo) is an interface to get

[perl #126523] Indirect symbol lookup failing

2015-11-06 Thread Christian Bartolomaeus via RT
The "Method 'Int' not found for invocant of class 'Any'" error on Moar is gone. I changed the fudging with commit 818ec3d. Two of the tests are still not passing (both on Moar and JVM).

[perl #126490] [BUG] Control exception handling is inconsistent and broken across backends. (SEGV on moar, CX unrecognized on jvm)

2015-11-06 Thread Christian Bartolomaeus via RT
As a status update: This code no longer segfaults on Moar: $ perl6-m -e 'A: for 1 { for 1 { last A }; CONTROL { when CX::Last { say "last" }; default { .perl.say } } }' chars requires a concrete string, but got null in block at -e:1 in block at -e:1 in block at -e:1

[perl #126529] [JVM] Buf.pm infix:<~> bug; breaks IO::Socket

2015-11-06 Thread Nick Logan via RT
On Sat Oct 31 19:42:22 2015, ug...@cpan.org wrote: > Using `$Blob1 ~= $Blob2` on jvm gives an error of > "java.lang.RuntimeException: This type does not support positional > operations" > > To reproduce: `my Blob $a = "a".encode; my Blob $b = "b".encode; $a ~= > $b; say $a.perl;` > > I added