On Thursday, 17 October 2013 at 23:08:12 UTC, DDD wrote:
Is there a way to make everything safe by default and give me a compile error if it isn't?

Not exactly. The closest you can get is putting @safe on main, because then everything you call in the whole program would be forced to be safe too (because @safe main won't be allowed to call unsafe (@system) functions, all the way down the chain, this is caught at compile time btw), or you can put @safe: at the top of your file, then it will apply to everything beneath it in the whole module.

Reply via email to