std.algorithm.filter cannot call gc_malloc at compile time

2013-07-09 Thread Meta
enum tokenRange = matchStr.split(,) .map!(a = a.findSplit(`=`) .array .map!strip) .filter!!a.empty; This won't compile. The error message is: .../core/memory.d(337):

Re: std.algorithm.filter cannot call gc_malloc at compile time

2013-07-09 Thread Meta
On Tuesday, 9 July 2013 at 16:44:29 UTC, John Colvin wrote: Fixed in git master. array was not ctfe-able until a few months back. What compiler version/release are you using? I'm using DPaste, but setting the compiler to use the latest from GIT fixed it. Thanks!

Re: std.algorithm.filter cannot call gc_malloc at compile time

2013-07-09 Thread Meta
On Tuesday, 9 July 2013 at 16:48:20 UTC, John Colvin wrote: which dpaste is that? http://dpaste.dzfl.pl/ gives me the error even using dmd 2.X Git Actually, yes, it still does not work. I forgot that I had changed enum to auto to get it working. My bad.

Re: std.algorithm.filter cannot call gc_malloc at compile time

2013-07-09 Thread John Colvin
On Tuesday, 9 July 2013 at 16:47:02 UTC, Meta wrote: On Tuesday, 9 July 2013 at 16:44:29 UTC, John Colvin wrote: Fixed in git master. array was not ctfe-able until a few months back. What compiler version/release are you using? I'm using DPaste, but setting the compiler to use the latest

Re: std.algorithm.filter cannot call gc_malloc at compile time

2013-07-09 Thread monarch_dodra
On Tuesday, 9 July 2013 at 16:48:20 UTC, John Colvin wrote: On Tuesday, 9 July 2013 at 16:47:02 UTC, Meta wrote: On Tuesday, 9 July 2013 at 16:44:29 UTC, John Colvin wrote: Fixed in git master. array was not ctfe-able until a few months back. What compiler version/release are you using? I'm

Re: std.algorithm.filter cannot call gc_malloc at compile time

2013-07-09 Thread John Colvin
On Tuesday, 9 July 2013 at 19:06:36 UTC, monarch_dodra wrote: On Tuesday, 9 July 2013 at 16:48:20 UTC, John Colvin wrote: On Tuesday, 9 July 2013 at 16:47:02 UTC, Meta wrote: On Tuesday, 9 July 2013 at 16:44:29 UTC, John Colvin wrote: Fixed in git master. array was not ctfe-able until a few