std.algorithm.filter cannot call gc_malloc at compile time

Meta jared771 at gmail.com
Tue Jul 9 09:28:19 PDT 2013


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): Error: gc_malloc cannot be interpreted at 
compile time, because it has no available source code

Is there some way I can work around this?


More information about the Digitalmars-d-learn mailing list