On Wednesday, 10 July 2013 at 08:09:46 UTC, Dicebot wrote:
Yes, this is a common issue not unique to @nogc. I am
personally much in favor of having restrictive attributes
enabled by default and then adding "mutable" "@system" and
"@allowheap" where those are actually needed. But unfortunately
there is no way to add something that backwards-incompatible
and attribute inference seems the only practical way (though I
hate it).
I thought about allowing attributes to be applied to a whole
module, such as:
@safe @nogc module foo_bar;
Then, "@system", "@allowheap" and friends could be used where
needed.