Thread overview
Vector operations cannot be nothrow?
Apr 13, 2013
simendsjo
Apr 13, 2013
bearophile
Apr 14, 2013
simendsjo
April 13, 2013
    void f() nothrow { // Error: _arrayExpSliceAddass_i is not nothrow
        int[3] d;
        d[] += 3;
    }
April 13, 2013
simendsjo:

>     void f() nothrow { // Error: _arrayExpSliceAddass_i is not nothrow
>         int[3] d;
>         d[] += 3;
>     }

Currently those ops are not nothrow. I think they will eventually become nothrow...

Bye,
bearophile
April 14, 2013
On Saturday, 13 April 2013 at 19:11:42 UTC, bearophile wrote:
> simendsjo:
>
>>    void f() nothrow { // Error: _arrayExpSliceAddass_i is not nothrow
>>        int[3] d;
>>        d[] += 3;
>>    }
>
> Currently those ops are not nothrow. I think they will eventually become nothrow...
>
> Bye,
> bearophile

Filed a bug: http://d.puremagic.com/issues/show_bug.cgi?id=9933