www.digitalmars.com         C & C++   DMDScript  

digitalmars.D.learn - Vector operations cannot be nothrow?

reply "simendsjo" <simendsjo gmail.com> writes:
     void f() nothrow { // Error: _arrayExpSliceAddass_i is not 
nothrow
         int[3] d;
         d[] += 3;
     }
Apr 13 2013
parent reply "bearophile" <bearophileHUGS lycos.com> writes:
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
Apr 13 2013
parent "simendsjo" <simendsjo gmail.com> writes:
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
Apr 14 2013