[perl #129279] [BUG] [UNI] Unicode digits cause an error in radix bases, match variables, and type constraints

2016-09-15 Thread via RT
# New Ticket Created by  Daniel Green 
# Please include the string:  [perl #129279]
# in the subject line of all future correspondence about this issue. 
# https://rt.perl.org/Ticket/Display.html?id=129279 >


 m: say :3<12>
 rakudo-moar 466770: OUTPUT«5␤»
 m: say :۳<12>
 rakudo-moar 466770: OUTPUT«===SORRY!===␤Error encoding ASCII string: 
could not encode codepoint 1779␤»

 m: "a b" ~~ /(\w) \s (\w)/; say $1
 rakudo-moar 466770: OUTPUT«「b」␤»
 m: "a b" ~~ /(\w) \s (\w)/; say $١
 rakudo-moar 466770: OUTPUT«===SORRY!===␤Error encoding ASCII string: 
could not encode codepoint 1633␤»

 m: sub f(-1) { say "hi" }; say f(-1)
 rakudo-moar 466770: OUTPUT«hi␤True␤»
 m: sub f(-١) { say "hi" }; say f(-1)
 rakudo-moar 466770: OUTPUT«===SORRY!===␤Error encoding ASCII string: 
could not encode codepoint 1633␤»


Re: [perl #129278] [BUG] Can't assign to `int` private attribute using signature

2016-09-15 Thread Elizabeth Mattijsen
This is a known issue, as there is no native support for attribute binding this 
way.  There’s quite some code in the setting working around this issue  :-(

> On 15 Sep 2016, at 20:49, Zoffix Znet (via RT)  
> wrote:
> 
> # New Ticket Created by  Zoffix Znet 
> # Please include the string:  [perl #129278]
> # in the subject line of all future correspondence about this issue. 
> # https://rt.perl.org/Ticket/Display.html?id=129278 >
> 
> 
> #Doesn't work:
>  m: class { has int $!n = 0; method x ($!n) {} }.new.x: 42
>  rakudo-moar 2c95f7: OUTPUT«Cannot modify an immutable int␤  in 
> method x at  line 1␤  in block  at  line 1␤␤»
> 
> # But does, if we use a temp var:
>  m: class { has int $!n = 0; method x ($n) {$!n = $n} }.new.x: 42
>  rakudo-moar 2c95f7: ( no output )


[perl #129278] [BUG] Can't assign to `int` private attribute using signature

2016-09-15 Thread via RT
# New Ticket Created by  Zoffix Znet 
# Please include the string:  [perl #129278]
# in the subject line of all future correspondence about this issue. 
# https://rt.perl.org/Ticket/Display.html?id=129278 >


#Doesn't work:
 m: class { has int $!n = 0; method x ($!n) {} }.new.x: 42
 rakudo-moar 2c95f7: OUTPUT«Cannot modify an immutable int␤  in method 
x at  line 1␤  in block  at  line 1␤␤»

# But does, if we use a temp var:
 m: class { has int $!n = 0; method x ($n) {$!n = $n} }.new.x: 42
 rakudo-moar 2c95f7: ( no output )


Re: Killer Features of Perl 6

2016-09-15 Thread Kaare Rasmussen

Hi Tony
Thank you all for your input - I have started writing my talk and will 
publish my slides when I'm done.I may even video the talk and publish 
that too


How did it go (if I dare to ask)?

/kaare



[perl #129275] [PERF] Infiniloop(?) Rapid Memory Consumption on attempting to use == with mixed-in Numeric

2016-09-15 Thread via RT
# New Ticket Created by  Zoffix Znet 
# Please include the string:  [perl #129275]
# in the subject line of all future correspondence about this issue. 
# https://rt.perl.org/Ticket/Display.html?id=129275 >


There's probably some good underlying reason for why this happens, but from 
programmers perspective, it's not at all clear what needs to be done to fix the 
issue, so if there's no way for us to fix it, there should be some sort of an 
Exception thrown:

 m: say class {}.new but Numeric == 72
 rakudo-moar 2c95f7: OUTPUT«Memory allocation failed; could not 
allocate 82944 bytes␤»