On Tuesday, 25 July 2017 at 18:36:35 UTC, Moritz Maxeiner wrote:
fgetc cannot be @trusted the same way fclose cannot be @trusted.
If you pass either of them `null` - which constitutes a legal @safe context - the behaviour is undefined, which contradicts @trusted definition: <Trusted functions are guaranteed by the programmer to not exhibit any undefined behavior if called by a safe function.>

There's a less questionable problem with it.

Reply via email to