Thread overview | ||||||
---|---|---|---|---|---|---|
|
August 18, 2013 Redundancy in std.stdio name | ||||
---|---|---|---|---|
| ||||
As a frustrated C++ user, I was sniffing around D for a decade. Today, I started reading "The D Programming Language". The first line of the first code example in this book: import std.stdio triggered my redundancy detector. Does it have to be std.stdio? How about std.io? |
August 18, 2013 Re: Redundancy in std.stdio name | ||||
---|---|---|---|---|
| ||||
Posted in reply to Paul Jurczak | On Sunday, 18 August 2013 at 02:26:59 UTC, Paul Jurczak wrote: > As a frustrated C++ user, I was sniffing around D for a decade. Today, I started reading "The D Programming Language". The first line of the first code example in this book: > > import std.stdio > > triggered my redundancy detector. Does it have to be std.stdio? How about std.io? I think there's a replacement in the works, but I'm not sure of the status on that: http://forum.dlang.org/thread/vnpriguleebpbzhkpdwi@forum.dlang.org#post-mailman.234.1362471736.14496.digitalmars-d:40puremagic.com |
August 18, 2013 Re: Redundancy in std.stdio name | ||||
---|---|---|---|---|
| ||||
Posted in reply to Paul Jurczak | On Sunday, 18 August 2013 at 02:26:59 UTC, Paul Jurczak wrote:
> As a frustrated C++ user, I was sniffing around D for a decade. Today, I started reading "The D Programming Language". The first line of the first code example in this book:
>
> import std.stdio
>
> triggered my redundancy detector. Does it have to be std.stdio? How about std.io?
std.stdio's upcoming replacement is called std.io. std.stdio is called stdio because it's based on C's stdio.h.
|
August 18, 2013 Re: Redundancy in std.stdio name | ||||
---|---|---|---|---|
| ||||
Posted in reply to Brad Anderson | On Sunday, 18 August 2013 at 02:42:32 UTC, Brad Anderson wrote:
> On Sunday, 18 August 2013 at 02:26:59 UTC, Paul Jurczak wrote:
>> As a frustrated C++ user, I was sniffing around D for a decade. Today, I started reading "The D Programming Language". The first line of the first code example in this book:
>>
>> import std.stdio
>>
>> triggered my redundancy detector. Does it have to be std.stdio? How about std.io?
>
> std.stdio's upcoming replacement is called std.io. std.stdio is called stdio because it's based on C's stdio.h.
Wow, that was fast! Thanks guys.
|
Copyright © 1999-2021 by the D Language Foundation