Shouldn't safety be the default.

Walter Bright newshound2 at digitalmars.com
Fri Dec 29 02:04:01 UTC 2023


On 12/27/2023 12:29 AM, Siarhei Siamashka wrote:
> My understanding is that people are suggesting a new global compiler switch to 
> optionally disable safety (allow `@system` and `@trusted` to be called from 
> `@safe`), which would indeed allow compiling old abandoned libraries and use 
> them from the new code during the transition period.

Hmm, that is an interesting idea. The implementation might be tricky, though, as 
@safe/trusted/system are baked into the typing system at a fundamental level.


More information about the Digitalmars-d mailing list