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

monarch_dodra monarchdodra at gmail.com
Thu Nov 22 22:49:15 PST 2012


On Friday, 23 November 2012 at 06:41:06 UTC, Walter Bright wrote:
> On 11/22/2012 6:11 PM, John Colvin wrote:
>>> 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?
>
> I'd have to look at the specific code to see. In any case, it 
> is an error. It takes a runtime check to do it, which can be 
> turned on or off with the -noboundscheck switch.

I originally opened this some time back, related to opSlice 
operations not error-ing:
http://d.puremagic.com/issues/show_bug.cgi?id=8650

I've since learned to build druntime as non-release, which 
"fixes" the problem.

I don't know if you plan to change anything about this, but just 
wanted to point out there's an Bugzilla entry for it.


More information about the Digitalmars-d mailing list