std.array string.split("") bug

2013-08-07 Thread Borislav Kosharov
Something strange happens when I do this: unittest { import std.array, std.string; string s = "test"; //assert(s.toUpper.split("").join("-") == "T-E-S-T"); //"Memory allocation failed" //[Finished in 26.5s] //CPU: 1% -> 50% | 2.7GHz dual core //RAM: 1.6GB -> 2.6GB | 1G

Re: std.array string.split("") bug

2013-08-07 Thread H. S. Teoh
On Wed, Aug 07, 2013 at 09:10:04PM +0200, Borislav Kosharov wrote: > Something strange happens when I do this: > > unittest { > import std.array, std.string; > string s = "test"; > //assert(s.toUpper.split("").join("-") == "T-E-S-T"); > //"Memory allocation failed" > //[Finishe

Re: std.array string.split("") bug

2013-08-07 Thread H. S. Teoh
On Wed, Aug 07, 2013 at 12:44:54PM -0700, H. S. Teoh wrote: > On Wed, Aug 07, 2013 at 09:10:04PM +0200, Borislav Kosharov wrote: > > Something strange happens when I do this: > > > > unittest { > > import std.array, std.string; > > string s = "test"; > > //assert(s.toUpper.split("").jo

Re: std.array string.split("") bug

2013-08-07 Thread John Colvin
On Wednesday, 7 August 2013 at 19:10:11 UTC, Borislav Kosharov wrote: Something strange happens when I do this: unittest { import std.array, std.string; string s = "test"; //assert(s.toUpper.split("").join("-") == "T-E-S-T"); //"Memory allocation failed" //[Finished in 26.5s]

Re: std.array string.split("") bug

2013-08-07 Thread H. S. Teoh
On Wed, Aug 07, 2013 at 10:39:11PM +0200, John Colvin wrote: > On Wednesday, 7 August 2013 at 19:10:11 UTC, Borislav Kosharov > wrote: > >Something strange happens when I do this: > > > >unittest { > >import std.array, std.string; > >string s = "test"; > >//assert(s.toUpper.split("").jo

Re: std.array string.split("") bug

2013-08-07 Thread H. S. Teoh
On Wed, Aug 07, 2013 at 01:42:13PM -0700, H. S. Teoh wrote: > On Wed, Aug 07, 2013 at 10:39:11PM +0200, John Colvin wrote: > > On Wednesday, 7 August 2013 at 19:10:11 UTC, Borislav Kosharov > > wrote: > > >Something strange happens when I do this: > > > > > >unittest { > > >import std.array, st

Re: std.array string.split("") bug

2013-08-08 Thread Andre Artus
On Wednesday, 7 August 2013 at 19:10:11 UTC, Borislav Kosharov wrote: Something strange happens when I do this: unittest { import std.array, std.string; string s = "test"; //assert(s.toUpper.split("").join("-") == "T-E-S-T"); //"Memory allocation failed" //[Finished in 26.5s]

Re: std.array string.split("") bug

2013-08-08 Thread Tyler Jameson Little
On Wednesday, 7 August 2013 at 19:10:11 UTC, Borislav Kosharov wrote: Something strange happens when I do this: unittest { import std.array, std.string; string s = "test"; //assert(s.toUpper.split("").join("-") == "T-E-S-T"); //"Memory allocation failed" //[Finished in 26.5s]