[OT] NSA guidance on software security
Walter Bright
newshound2 at digitalmars.com
Fri Nov 11 19:41:23 UTC 2022
On 11/11/2022 1:32 AM, Siarhei Siamashka wrote:
> ```D
> @safe:
> import std.stdio;
> void main() { readln; }
> ```
>
> ```
> $ dmd test.d
> test.d(3): Error: `@safe` function `D main` cannot call `@system` function
> `std.stdio.readln!string.readln`
> /usr/lib/dmd/2.099/import/std/stdio.d(4566): `std.stdio.readln!string.readln` is
> declared here
> ```
Please report @safe issues to bugzilla:
https://issues.dlang.org/show_bug.cgi?id=23477
More information about the Digitalmars-d
mailing list