www.digitalmars.com         C & C++   DMDScript  

digitalmars.D.announce - Start of std2

reply Bill Baxter <dnewsgroup billbaxter.com> writes:
A modest start, but here's a quickie port of D2.x std.conv,std.traits, 
and std.variant to D1.x.

Not really tested at all, but they pass unit tests!
So if they're broken then blame it on the guy who wrote the unit tests.  :-)

http://www.billbaxter.com/tmp/std2.zip

[Actually conv doesn't pass it's unittests for D2.0 either.  Conversion 
of "nan" to floats doesn't work. On Windows at least -- maybe Linux's 
strtof is smarter.]

--bb
Oct 16 2007
next sibling parent Walter Bright <newshound1 digitalmars.com> writes:
Bill Baxter wrote:
 [Actually conv doesn't pass it's unittests for D2.0 either.  Conversion 
 of "nan" to floats doesn't work. On Windows at least -- maybe Linux's 
 strtof is smarter.]
pls file a bug report
Oct 16 2007
prev sibling next sibling parent 0ffh <spam frankhirsch.net> writes:
Bill Baxter wrote:
 A modest start, but here's a quickie port of D2.x std.conv,std.traits, 
 and std.variant to D1.x.
My, Bill, you're a fast one! Good work! =) Regards, Frank
Oct 16 2007
prev sibling parent reply Walter Bright <newshound1 digitalmars.com> writes:
Bill Baxter wrote:
 A modest start, but here's a quickie port of D2.x std.conv,std.traits, 
 and std.variant to D1.x.
How about std.getopt?
Oct 16 2007
next sibling parent Bill Baxter <dnewsgroup billbaxter.com> writes:
Walter Bright wrote:
 Bill Baxter wrote:
 A modest start, but here's a quickie port of D2.x std.conv,std.traits, 
 and std.variant to D1.x.
How about std.getopt?
Next on my list. My 3 year old woke up. :-)
Oct 16 2007
prev sibling parent Bill Baxter <dnewsgroup billbaxter.com> writes:
Walter Bright wrote:
 Bill Baxter wrote:
 A modest start, but here's a quickie port of D2.x std.conv,std.traits, 
 and std.variant to D1.x.
How about std.getopt?
Easier than expected! A two-line change given std2.conv and std2.traits. Full list is now: contracts.d conv.d getopt.d string.d traits.d variant.d http://www.billbaxter.com/tmp/std2.zip --bb
Oct 16 2007