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
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
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
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?
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: «True12345678910»
>
> Expected: reify until `1`, delete it, and have `@a[1]:exists` give
> False, and `.say for
# 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
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
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
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