Discussion Thread: DIP 1028--Make @safe the Default--Final Review
Steven Schveighoffer
schveiguy at gmail.com
Fri Apr 3 22:23:02 UTC 2020
On 4/3/20 5:06 PM, Steven Schveighoffer wrote:
> Even if the function is written in D, the fact that the prototype
> marking could be forgotten is going to cause huge issues.
e.g. I don't want to see the day subtle bugs due to forgetting to go and
mark this prototype as @system crop up:
https://github.com/dlang/phobos/blob/cd2b75560b089beaaf757011d308894dbe44dc93/std/stdio.d#L261
Consider it. On systems with HAS_GETDELIM, stdin.byLine which was
previously inferred @system now is inferred @safe. All because of stuff
like this was missed. What a fun bug to track down and fix.
-Steve
More information about the Digitalmars-d
mailing list