std_exception.html#enforce: example does not compile

kdevel kdevel at vogtner.de
Sat Jan 27 20:11:29 UTC 2018


On Saturday, 27 January 2018 at 18:34:35 UTC, Jonathan M Davis 
wrote:
>> The example still does not compile.
>
> That has nothing to do with enforce. std.stdio.readln does not 
> take a FILE*. In general, you shouldn't mix core.stdc.stdio and 
> std.stdio.

The code is from the official documentation:

- https://dlang.org/phobos/std_exception.html#enforce, and
- https://dlang.org/library/std/exception/enforce.html

Shall I file a bug report?


More information about the Digitalmars-d-learn mailing list