Thread overview | |||||
---|---|---|---|---|---|
|
April 25, 2017 Why File is exists in std.stdio and in std.file? | ||||
---|---|---|---|---|
| ||||
Just interesting. Is there any rational reasons for this decision? |
April 25, 2017 Re: Why File is exists in std.stdio and in std.file? | ||||
---|---|---|---|---|
| ||||
Posted in reply to Suliman | V Tue, 25 Apr 2017 07:05:51 +0000 Suliman via Digitalmars-d-learn <digitalmars-d-learn@puremagic.com> napsáno: > Just interesting. Is there any rational reasons for this decision? No it isn't. File is only in std.stdio; |
April 25, 2017 Re: Why File is exists in std.stdio and in std.file? | ||||
---|---|---|---|---|
| ||||
Posted in reply to Suliman | On Tuesday, 25 April 2017 at 07:05:51 UTC, Suliman wrote:
> Just interesting. Is there any rational reasons for this decision?
There's no File in std.file. It's located in std.stdio.
std.stdio and std.file are different modules. The first one has safe wrappers around stdio.h from C library, the second one provides operations on files as unit.
|
Copyright © 1999-2021 by the D Language Foundation