why does this error out?

lobo via Digitalmars-d-learn digitalmars-d-learn at puremagic.com
Wed Nov 11 18:38:25 PST 2015


On Thursday, 12 November 2015 at 02:36:23 UTC, lobo wrote:
> On Tuesday, 10 November 2015 at 14:25:19 UTC, steven kladitis 
> wrote:
>> On Tuesday, 10 November 2015 at 05:14:29 UTC, lobo wrote:
>>> [...]
>>
>>
>> with dmd 2.069
>> I always get
>> --> [1
>> and then the error no matter what I canhe that line to.
>
> Hmm, that's different to what I get. On linux 64 bit with dmd 
> 2.069 I get this:
>
> [1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 12, 18, 20, 21, 24, 27, 30, 36, 
> 40, 42]
> core.exception.AssertError at std/range/package.d(4691): Assertion 
> failure
>
>
> Note the assertion is same as before; hardas has no values > 
> 252 so filter!(h => h < 1000) results in an empty range.
>
> bye,
> lobo

that should be filter!(h => h > 1000)


More information about the Digitalmars-d-learn mailing list