[Issue 11494] std.array.appender is not nothrow
d-bugmail at puremagic.com
d-bugmail at puremagic.com
Wed Nov 13 08:52:36 PST 2013
https://d.puremagic.com/issues/show_bug.cgi?id=11494
monarchdodra at gmail.com changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |monarchdodra at gmail.com
--- Comment #2 from monarchdodra at gmail.com 2013-11-13 08:52:31 PST ---
(In reply to comment #0)
> This propagates up to to!(array)(other_array) making it not work in nothrow
> too, despite the fact they otherwise don't throw anything except out of memory
> errors.
What do you mean? This works fine on my HEAD. It's even safe and pure:
//----
import std.conv, std.array;
void main() nothrow @safe pure
{
int[] arr;
to!(int[])(arr);
appender(arr);
}
//----
This is with 2.064.2. In 2.063.2 it's not @safe.
Are you sure the problem in "to" isn't that the duplicated array contains
objects with throwing postblits by any chance?
--
Configure issuemail: https://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
More information about the Digitalmars-d-bugs
mailing list