Thread overview
Start of std2
Oct 16, 2007
Bill Baxter
Oct 16, 2007
Walter Bright
Oct 16, 2007
0ffh
Oct 16, 2007
Walter Bright
Oct 16, 2007
Bill Baxter
Oct 17, 2007
Bill Baxter
October 16, 2007
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
October 16, 2007
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
October 16, 2007
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
October 16, 2007
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?
October 16, 2007
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.  :-)
October 17, 2007
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