Array Operations: a[] + b[] etc.

John Colvin john.loughran.colvin at gmail.com
Thu Nov 22 18:11:10 PST 2012


On Thursday, 22 November 2012 at 20:58:25 UTC, Walter Bright 
wrote:
> On 11/22/2012 3:25 AM, John Colvin wrote:
>> Anyway, this is a pretty trivial matter, I'd be more 
>> interested in seeing a
>> definitive answer for what the correct behaviour for the 
>> statement a[] = b[] +
>> c[] is when the arrays have different lengths.
>
> An error.

Is monarch_dodra correct in saying that one would have to compile 
druntime in non-release to see this error? That would be a pity, 
couldn't this be implemented somehow so that it would depend on 
the user code being compiled non-release, not druntime?


More information about the Digitalmars-d mailing list