Re: Odd Complex behavior

2019-06-13 Thread Elizabeth Mattijsen
We could potentially give 0e0 and -0e0 the same .WHICH, which would solve the bag issue. > On 13 Jun 2019, at 21:02, Timo Paulssen wrote: > > Unfortunately, that's what the IEEE prescribes, so all we can really do is: > *shrug* > > On 13/06/2019 21:01, Sean McAfee wrote: >> On Thu, Jun 13, 20

Re: Odd Complex behavior

2019-06-13 Thread Timo Paulssen
Unfortunately, that's what the IEEE prescribes, so all we can really do is: *shrug* On 13/06/2019 21:01, Sean McAfee wrote: On Thu, Jun 13, 2019 at 11:12 AM Brad Gilbert > wrote:     > (-i).reals     (-0 -1) Ah, so it's nothing particular to Complex: > bag

Re: Odd Complex behavior

2019-06-13 Thread Sean McAfee
On Thu, Jun 13, 2019 at 11:12 AM Brad Gilbert wrote: > > (-i).reals > (-0 -1) > Ah, so it's nothing particular to Complex: > bag 0e0, -0e0 bag(-0, 0) Can't say I'm thrilled to have two distinct zeroes.

Re: Odd Complex behavior

2019-06-13 Thread Brad Gilbert
> (-i).reals (-0 -1) > Complex.new(0, -1).reals (0 -1) > ((-1)i).reals (0 -1) This is precisely what I would expect to happen. There is a postfix `i` operator for things like `1i`, but there is also a constant `i` # from src/core/Complex.pm6 constant i = Complex.n

Odd Complex behavior

2019-06-13 Thread Sean McAfee
> bag i, 2i - i bag(0+1i(2)) Well and good. > bag -i, -2i + i bag(0-1i, -0-1i) Huh? But this works as expected: > bag Complex.new(0, -1), Complex.new(0, -2) + Complex.new(0, 1) bag(0-1i(2)) Is this a bug, or is there a sense in which it's correct?

Re: I need one liner module import help

2019-06-13 Thread ToddAndMargo via perl6-users
On 6/13/19 1:49 AM, JJ Merelo wrote: Hi, El jue., 13 jun. 2019 a las 9:39, ToddAndMargo via perl6-users (mailto:perl6-users@perl.org>>) escribió: On 6/11/19 3:39 PM, ToddAndMargo via perl6-users wrote: > This works: > > perl6 -e 'use lib "/home/linuxutil/p6lib"; use PrintCo

Re: I need one liner module import help

2019-06-13 Thread JJ Merelo
Hi, El jue., 13 jun. 2019 a las 9:39, ToddAndMargo via perl6-users (< perl6-users@perl.org>) escribió: > On 6/11/19 3:39 PM, ToddAndMargo via perl6-users wrote: > > This works: > > > > perl6 -e 'use lib "/home/linuxutil/p6lib"; use PrintColors :PrintBlue; > > PrintBlue( "Blue\n" );' > > > > Blue

Re: I need one liner module import help

2019-06-13 Thread ToddAndMargo via perl6-users
On 6/11/19 3:39 PM, ToddAndMargo via perl6-users wrote: This works: perl6 -e 'use lib "/home/linuxutil/p6lib"; use PrintColors :PrintBlue; PrintBlue( "Blue\n" );' Blue Just posted: RFE: -M switch for selective imports https://github.com/perl6/doc/issues/2852