> isn't it better and safer
The C api returns a -1 to indicate error, which the D code catches and raises an exception. Since we dont need to return an error as -1, and because files cannot have a size less than zero, it makes since to use an unsigned type.
I'd say a signed type is neither better or safer.
> Currently unsigned values are quite dangerous in D
I don't know if that's still true, if it is you should open a new bug report with some test code.
Comment #2 by dfj1esp02 — 2015-01-27T10:09:17Z
(In reply to AndyC from comment #1)
> I don't know if that's still true, if it is you should open a new bug report
> with some test code.
It's a semantical issue, see the linked discussion.