[Issue 10306] Array ^^ operator doesn't support complex expressions

via Digitalmars-d-bugs digitalmars-d-bugs at puremagic.com
Thu Jun 4 00:12:09 PDT 2015


https://issues.dlang.org/show_bug.cgi?id=10306

Kenji Hara <k.hara.pg at gmail.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |RESOLVED
           Hardware|x86                         |All
         Resolution|---                         |FIXED
                 OS|Windows                     |All

--- Comment #3 from Kenji Hara <k.hara.pg at gmail.com> ---
(In reply to bearophile_hugs from comment #0)
[snip]

All lines work as expected with 2.067.

> dmd 2.064alpha gives:
> temp.d(7): Error: incompatible types for ((a[] - b[]) ^^ (cast(double)2)):
> 'double[]' and 'double'

Works since 2.065, fixed by:
https://github.com/D-Programming-Language/dmd/pull/2960


> If you comment out line 7 you receive:
> temp.d(8): Error: Array operation a[] - b[] not implemented

Works since 2.067, fixed by:
https://github.com/D-Programming-Language/dmd/pull/4007

--


More information about the Digitalmars-d-bugs mailing list