Splitting Ranges using Lambda Predicates

monarch_dodra via Digitalmars-d-learn digitalmars-d-learn at puremagic.com
Fri Oct 10 03:02:21 PDT 2014


On Friday, 10 October 2014 at 05:55:00 UTC, Nordlöw wrote:
> On Thursday, 9 October 2014 at 22:01:31 UTC, monarch_dodra 
> wrote:
>> My quick guess is you are missing the *global* imports for the 
>> restraints. The compiler doesn't complain because the 
>> constraint is in a "is(typeof(...))" test. The reason the 
>> typeof fails is simply cause the compiler has no idea what 
>> unaryFun is.
>
> I don't understand. The restraints are commented out at
>
> https://github.com/nordlow/justd/blob/master/slicer.d
>
> I made a couple of changes and now it works but I don't quite 
> understand why...
>
> Thanks anyway.

Sorry, I read your compile error wrong, and was on my phone.

Anyways, I'm a bit worried, because it looks like an internal 
phobos compile error. May I request you attempt to re-create and 
potentially reduce the issue? I want to make sure you didn't 
uncover a bug...


More information about the Digitalmars-d-learn mailing list