Hacker News new | ask | show | jobs
by wtetzner 3286 days ago
Could there be a compiler flag to flip the default to @safe,so it doesn't have to be added to each file?
1 comments

It could eventually be an option I guess, but it would require anyway to recompile all code.

As always in such cases, to validate binary libraries, they need some kind of metadata to indicate they are safe libraries (aka they only use of @safe or @thrusted code).

.NET does this with MSIL metadata, Modula-3 does it directly on the module definition section, for example.