[Issue 7012] Pure vector operations

2013-07-09 Thread d-bugmail
http://d.puremagic.com/issues/show_bug.cgi?id=7012


bearophile_h...@eml.cc changed:

   What|Removed |Added

 Status|NEW |RESOLVED
 Resolution||WORKSFORME


--- Comment #2 from bearophile_h...@eml.cc 2013-07-09 10:02:30 PDT ---
This compiles:

void main() pure nothrow {
int[3] a = [1, 2, 2];
int[3] b = [10, 20, 20];
int[3] c = void;
c[] = a[] + b[];
}


The error message caused by this line of code is not related to purity:

immutable int[3] c = a[] + b[];

So this is closed.

-- 
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
--- You are receiving this mail because: ---


[Issue 7012] Pure vector operations

2013-07-09 Thread d-bugmail
http://d.puremagic.com/issues/show_bug.cgi?id=7012


hst...@quickfur.ath.cx changed:

   What|Removed |Added

 CC||hst...@quickfur.ath.cx


--- Comment #1 from hst...@quickfur.ath.cx 2013-07-09 08:55:08 PDT ---
On latest git HEAD, dmd gives:

test.d(4): Error: Array operation a[] + b[] not implemented

So at least the message is more helpful. But it's still not working yet.

-- 
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
--- You are receiving this mail because: ---