3 ms·
Could there be a compiler flag to flip the default to @safe,so it doesn't have to be added to each file?
by wtetzner 9y ago
Could there be a compiler flag to flip the default to @safe,so it doesn't have to be added to each file?
- pjmlp 9y agoIt 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.