[Issue 10307] Bad error message for not supported array operation

via Digitalmars-d-bugs digitalmars-d-bugs at puremagic.com
Thu Jul 10 04:10:33 PDT 2014


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

--- Comment #2 from bearophile_hugs at eml.cc ---
(In reply to Kenji Hara from comment #1)
> With 2.066 the message is improved.
> 
> test.d(10): Error: array operation a[] ^^ 2L without assignment not
> implemented

"not implemented" seems to suggest that someday it will implemented. But by
design this is not going to happen (unless we decide to change the design of
vector ops and allocate the result of a[]^^2 on the stack). So a better error
message is:

test.d(10): Error: invalid array operation (a[] ^^ 2), no specified memory
location for its result

--


More information about the Digitalmars-d-bugs mailing list