There may be a better way to solve this but I'm trying to learn
Phobos and parameter typing and anonymous function, etc. So this
is probably more of an academic question but I've got the
following code:
int countBetween(T)(T[] x, T low, T high)
{
auto k = count!( (x){return ((x = low)
StupidIsAsStupidDoes:
The char call doesn't compile and I get a toir.c internal error.
Such internal errors are compiler bugs that should be added to
Bugzilla.
But I have compiled the following program with the latest DMD
GIT-head 32 bit Windows, and I see no compiler bugs:
import
On 10/31/2012 04:35 PM, StupidIsAsStupidDoes wrote:
The char call doesn't compile and I get a toir.c internal error.
On a recent dmd build from github, I don't get any ICE, so it may have
been fixed. I do get some disconcerting type deduction failures, though...
I'm still trying to get