[Issue 8651] Slice op Slice throws exceptions (not errors), and nothrow

d-bugmail at puremagic.com d-bugmail at puremagic.com
Sat Sep 15 23:52:24 PDT 2012


http://d.puremagic.com/issues/show_bug.cgi?id=8651



--- Comment #1 from monarchdodra at gmail.com 2012-09-15 23:53:18 PDT ---
Also, simple SlicoOp operations should be nothrow:

nothrow void foo(int[] a)
{
  a[] += 5;
}
Error: _arrayExpSliceAddass_i is not nothrow
Error: function main.foo 'foo' is nothrow yet may throw


nothrow void foo(int[] a)
{
  a[] &= 5;
}
Error: _arrayExpSliceAddass_i is not nothrow
Error: function main.foo 'foo' is nothrow yet may throw

-- 
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------


More information about the Digitalmars-d-bugs mailing list