digitalmars.D.bugs - [Issue 19041] New: errnoEnforce: example does not compile
- d-bugmail puremagic.com (22/22) Jun 29 2018 https://issues.dlang.org/show_bug.cgi?id=19041
https://issues.dlang.org/show_bug.cgi?id=19041 Issue ID: 19041 Summary: errnoEnforce: example does not compile Product: D Version: D2 Hardware: Other OS: Other Status: NEW Severity: enhancement Priority: P1 Component: dlang.org Assignee: nobody puremagic.com Reporter: kdevel vogtner.de https://dlang.org/phobos/std_exception.html#errnoEnforce --- auto f = errnoEnforce(fopen("data.txt")); auto line = readln(f); enforce(line.length); // expect a non-empty line --- Doc needs an example which compiles. https://forum.dlang.org/thread/yctbgblmfaagujoiznxt forum.dlang.org --
Jun 29 2018