Re: (default) Real->Rat precision should match what compiler uses for literals

2018-03-14 Thread yary
I want an epsilon that doesn't confuse newbies and which also is efficient. epsilon=1/2**(mantissa bits-1) fits the bill. Why I want this- It would be great to have numbers survive round-trip conversions, when feasible. Specifically I have no need to compare Rats and Nums for equality, but I do

[perl #132980] Coercion type apparently does not check the actual type of the coerced value

2018-03-14 Thread Zoffix Znet via RT
On Wed, 14 Mar 2018 14:16:06 -0700, comdog wrote: > I was playing with coercion types and wondered what would happen if > a .Int method did not return the right sort of type: > > class Foo { > method Int ( --> Str ) { 'Hello' } > } > > put try-it( Foo.new ); > > sub t

[perl #132980] Coercion type apparently does not check the actual type of the coerced value

2018-03-14 Thread Zoffix Znet via RT
On Wed, 14 Mar 2018 14:16:06 -0700, comdog wrote: > I was playing with coercion types and wondered what would happen if > a .Int method did not return the right sort of type: > > class Foo { > method Int ( --> Str ) { 'Hello' } > } > > put try-it( Foo.new ); > > sub t

[perl #130883] problem with RESOURCES and PERL6LIB env variable

2018-03-14 Thread Jan-Olof Hendig via RT
On Mon, 17 Jul 2017 10:50:55 -0700, ug...@cpan.org wrote: > The %?RESOURCES bug was fixed in: https://github.com/rakudo/rakudo/pull/1106 ugexe, does that mean that the issue can be marked as resolved?

[perl #131790] [BUG] :delete silently fails on lazy Arrays

2018-03-14 Thread Jan-Olof Hendig via RT
On Mon, 24 Jul 2017 09:09:55 -0700, c...@zoffix.com wrote: > m: my @a is default(42) = 1...*; @a[1]:delete; say @a[1]:exists; .say > for @a[^10] > rakudo-moar 2fb8c7: OUTPUT: «True␤1␤2␤3␤4␤5␤6␤7␤8␤9␤10␤» > > Expected: reify until `1`, delete it, and have `@a[1]:exists` give > False, and `.say for

[perl #132980] Coercion type apparently does not check the actual type of the coerced value

2018-03-14 Thread brian d foy
# New Ticket Created by "brian d foy" # Please include the string: [perl #132980] # in the subject line of all future correspondence about this issue. # https://rt.perl.org/Ticket/Display.html?id=132980 > I was playing with coercion types and wondered what would happen if a .Int method did no

[perl #128512] [BUG] utf8-c8 mangles by NFC

2018-03-14 Thread Jan-Olof Hendig via RT
On Sun, 26 Feb 2017 23:01:18 -0800, zef...@fysh.org wrote: > This problem no longer occurs. > > -zefram > Fixed with commit (2017-01-02) https://github.com/rakudo/rakudo/commit/7c8b705b3375522fc36304b771f82f50246afcf0

[perl #128511] [BUG] utf8-c8 generates spurious NUL

2018-03-14 Thread Jan-Olof Hendig via RT
On Sun, 26 Feb 2017 23:02:00 -0800, zef...@fysh.org wrote: > This problem no longer occurs. > > -zefram > This was fixed with commit (2017-01-02) https://github.com/rakudo/rakudo/commit/7c8b705b3375522fc36304b771f82f50246afcf0

[perl #124057] [SEGV] Proxy class attribute interaction segfaults

2018-03-14 Thread Ron Schmidt via RT
When I run this example now (Windows and Linux) I get: P6opaque: no such attribute '$!encoded-string' on type Codeword in a Proxy when trying to get a value instead of a segfault. If I tweak the code as below to use subs instead of methods for the Proxy hooks it runs fine. The P6opaque error