std.string.split is broken :( (Re: DMD 1.001 release)
Lionello Lunesu
lio at lunesu.remove.com
Wed Jan 24 05:21:45 PST 2007
Derek Parnell wrote:
> 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.
Doh! I had put it in a separate unittest and it tripped (the second
assertion, by the way), but indeed when compiled alone it doesn't trip.
I guess I'll have to include more stuff to see what's going on.
L.
More information about the Digitalmars-d-announce
mailing list