www.digitalmars.com         C & C++   DMDScript  

digitalmars.D - Redundancy in std.stdio name

reply "Paul Jurczak" <pauljurczak yahoo.com> writes:
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?
Aug 17 2013
next sibling parent "Tyler Jameson Little" <beatgammit gmail.com> writes:
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
Aug 17 2013
prev sibling next sibling parent "Brad Anderson" <eco gnuk.net> writes:
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.
Aug 17 2013
prev sibling parent "Paul Jurczak" <pauljurczak yahoo.com> writes:
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.
Aug 17 2013