std.string.split is broken :( (Re: DMD 1.001 release)

Derek Parnell derek at psych.ward
Wed Jan 24 04:48:38 PST 2007


On Wed, 24 Jan 2007 12:31:37 +0200, Lionello Lunesu wrote:

> The following code stopped working in 1.001. It works fine in 1.00:
> 
> void main()
> {
> 	auto rs = std.string.split("a\tb\nc\td\ne\tf","\n");
> 	assert(rs.length==3);
> 
> 	foreach(r;rs) {
> 	    auto f = std.string.split(r,"\t");
> 	    assert(f.length==2);
> 	}
> }
> 
> 
> std.string did not change, so I suspect there's something in the GC :(

Works fine in Windows XP SP2.
-- 
Derek Parnell



More information about the Digitalmars-d-announce mailing list