digitalmars.D.announce - file.read in cppstrings.hpp page
- Kevin Bealer (2/2) Nov 14 2007 http://www.digitalmars.com/d/cppstrings.html has an error -- it uses "fi...
- Walter Bright (1/1) Nov 14 2007 Thank-you.
- Kevin Bealer (8/9) Nov 14 2007 Also, great job on all the recent progress here! I don't follow these f...
http://www.digitalmars.com/d/cppstrings.html has an error -- it uses "file.read(...)" to read a file, but this doesn't work. It should be either std.file.read(), or just read(). Kevin
Nov 14 2007
Walter Bright Wrote:Thank-you.Also, great job on all the recent progress here! I don't follow these forums as closely as I used to but the language is still improving amazingly fast. The press and blogging I see about D always seems to be positive as well -- it actually seems as if everyone who takes a close look at it likes it. By the way, I ran into this when I tried making a C++ version of the "wc" example using hash_map (in g++). It seems to run faster than the map version -- but still a lot slower than the D code. The timing values I got were something like: C++ w/ map: .49 seconds. C++ w/ hash_map .33 seconds. D version: .105 seconds. Kevin
Nov 14 2007