[Issue 18167] std.array.appender should be usable in @safe

2021-11-01 Thread d-bugmail--- via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=18167

Ate Eskola  changed:

   What|Removed |Added

 Status|NEW |RESOLVED
 CC||ajiesk...@gmail.com
 Resolution|--- |FIXED

--- Comment #2 from Ate Eskola  ---
Both of these examples compile with self-built DMD v2.098.0-132-ge26dfa84d,
after adding function parenthesis and an import to the latter example. Both
still failed with DMD v2.095.1. Assuming fixed.

--


[Issue 18167] std.array.appender should be usable in @safe

2018-01-02 Thread d-bugmail--- via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=18167

Seb  changed:

   What|Removed |Added

 Blocks||18110


Referenced Issues:

https://issues.dlang.org/show_bug.cgi?id=18110
[Issue 18110] most of phobos should be @safe-ly useable
--


[Issue 18167] std.array.appender should be usable in @safe

2018-01-02 Thread d-bugmail--- via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=18167

--- Comment #1 from Seb  ---
Another example:

void test @safe {

static class A {}
auto w = appender!(shared(A)[])();
w.put(new shared A());

}

--