Could assertThrown be made safe/trusted?

Timon Gehr timon.gehr at
Tue Jan 17 11:28:52 PST 2012

On 01/17/2012 08:21 PM, H. S. Teoh wrote:
> On Tue, Jan 17, 2012 at 09:07:05AM -0800, Jonathan M Davis wrote:
> [...]
>> Exception itself isn't @safe yet (its constructor in particular), and
>> I don't think that AssertError is either. A number of stuff like that
>> in druntime and Phobos still needs to be marked @safe or @trusted.
> [...]
> Just out of curiosity, why isn't it marked @safe? I looked over the
> source and didn't see anything immediately obvious that would preclude
> @safe.
> T

The code for it was presumably written before SafeD was invented.

More information about the Digitalmars-d-learn mailing list