On 5/4/2014 9:29 AM, Meta wrote:

While D is a somewhat safer language by *default*, it makes it fairly
easy to escape from the safe part of the language and write unsafe code

Yea, I'm finding that in some ways, D accidentally encourages @system/@trusted code. For example, if you need some sensitive data zeroed out when done, and for whatever reason you aren't able to just have it live on the stack (to use RAII), then you need RefCounted which AFAICS throws any chance of being @safe out the window.

Maybe RefCounted could somehow take advantage of Unique to provide @safe-ty?

Reply via email to