randomIO, std.file, core.stdc.stdio
ketmar via Digitalmars-d-learn
digitalmars-d-learn at puremagic.com
Mon Jul 25 19:11:12 PDT 2016
On Tuesday, 26 July 2016 at 01:19:49 UTC, Charles Hixson wrote:
> then I will prefer the core.stdc.stdio approach. I find it's
> appearance extremely much cleaner...
only if you are really used to write C code. when you see
pointer, or explicit type size argument in D, it is a sign of C
disease.
> I'll probably wrap those routines in a struct to ensure things
> like files being properly closed, and not have explicit
> pointers persisting over large areas of code.
exactly what std.stdio.File did! ;-)
More information about the Digitalmars-d-learn
mailing list