Array Operations: a[] + b[] etc.
monarch_dodra
monarchdodra at gmail.com
Thu Nov 22 04:10:34 PST 2012
On Thursday, 22 November 2012 at 11:25:31 UTC, 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.
I'd say the same as for "a[] += b[];": an assertion error.
You have to compile druntime in non-release to see it though.
More information about the Digitalmars-d
mailing list