Thread overview | |||||
---|---|---|---|---|---|
|
June 09, 2011 [Issue 6136] New: Vector operation array[]^^ not supported yet | ||||
---|---|---|---|---|
| ||||
http://d.puremagic.com/issues/show_bug.cgi?id=6136 Summary: Vector operation array[]^^ not supported yet Product: D Version: D2 Platform: x86 OS/Version: Windows Status: NEW Severity: enhancement Priority: P2 Component: DMD AssignedTo: nobody@puremagic.com ReportedBy: bearophile_hugs@eml.cc --- Comment #0 from bearophile_hugs@eml.cc 2011-06-09 13:42:19 PDT --- void main() { int[3] A = [1, 2, 3]; int[3] B; B[] = A[] * 2; // OK assert(B == [2, 4, 6]); B[] = A[] * A[]; // OK assert(B == [1, 4, 9]); B[] = A[] ^^ 2; // Error assert(B == [1, 4, 9]); B[] = A[] ^^ A[]; // Error assert(B == [1, 4, 27]); } DMD 2.053 gives: test.d(8): Error: incompatible types for ((A[]) ^^ (2)): 'int[]' and 'int' test.d(10): Error: incompatible types for ((A[]) ^^ (A[])): 'int[]' and 'int[]' -- Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- |
August 21, 2011 [Issue 6136] Vector operation array[]^^ not supported yet | ||||
---|---|---|---|---|
| ||||
Posted in reply to bearophile_hugs@eml.cc | http://d.puremagic.com/issues/show_bug.cgi?id=6136 Iain Buclaw <ibuclaw@ubuntu.com> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |ibuclaw@ubuntu.com --- Comment #1 from Iain Buclaw <ibuclaw@ubuntu.com> 2011-08-21 03:23:57 PDT --- This has been discussed before in bug3661 Have raised a pull request to get this code accepted, it is now up to the library folk to optimise this routine, but I believe it's something that can't be vectorised, so there will probably be no performance benefit. https://github.com/D-Programming-Language/dmd/pull/325 Regards -- Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- |
August 21, 2011 [Issue 6136] Vector operation array[]^^ not supported yet | ||||
---|---|---|---|---|
| ||||
Posted in reply to bearophile_hugs@eml.cc | http://d.puremagic.com/issues/show_bug.cgi?id=6136 Iain Buclaw <ibuclaw@ubuntu.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |RESOLVED Resolution| |DUPLICATE --- Comment #2 from Iain Buclaw <ibuclaw@ubuntu.com> 2011-08-21 03:28:23 PDT --- *** This issue has been marked as a duplicate of issue 3661 *** -- Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- |
Copyright © 1999-2021 by the D Language Foundation