A array bug?

Stewart Gordon smjg_1998 at yahoo.com
Wed Feb 4 17:49:27 PST 2009


Ellery Newcomer wrote:
> taqya wrote:
<snip>
>>     char[] a = "a".dup;
>>     char[] b = "b".dup;
>>     writefln(a + b); //Error: Array operations not implemented
<snip>
> If so, the error informs you why you can't do that.
<snip>

Except that it doesn't.  "Array operations not implemented" is a 
leftover from a previous version of the D spec.  Nowadays array 
operations _are_ implemented, but the language doesn't support this 
particular use thereof.  So the bug is that the error message is badly 
written.

Stewart.


More information about the Digitalmars-d-learn mailing list