On Thursday, 19 April 2018 at 01:33:26 UTC, Jonathan M Davis
wrote:
[snip]
Occasionally, that aspect of importing and UFCS can be
annoying, but on the whole, I don't really see why it matters
much, particularly when actually having the free functions
available would be an enormous change to
On Wednesday, April 18, 2018 20:39:46 jmh530 via Digitalmars-d-learn wrote:
> On Monday, 16 April 2018 at 19:27:28 UTC, Jonathan M Davis wrote:
> > [snip]
>
> It really would be nice if it worked with free functions...
>
> I was trying to get the example working with Atila's concepts
> library
On Monday, 16 April 2018 at 19:27:28 UTC, Jonathan M Davis wrote:
[snip]
It really would be nice if it worked with free functions...
I was trying to get the example working with Atila's concepts
library [1]. I tried re-writing the checkInputRange function so
that UFCS is only used when
Am 16.04.2018 um 21:27 schrieb Jonathan M Davis:
> On Monday, April 16, 2018 21:10:03 Johannes Loher via Digitalmars-d-learn
> wrote:
>> Is there a way to do this? Here is a naive implementation:
>> https://run.dlang.io/is/JKvL80 .
>>
>> It does not pass `isInputRange` (I think, because the free
On 4/16/18 3:10 PM, Johannes Loher wrote:
Is there a way to do this? Here is a naive implementation:
https://run.dlang.io/is/JKvL80 .
It does not pass `isInputRange` (I think, because the free functions are
not visible in the scope of `isInputRange`).
You are correct, it's not possible.
On Monday, April 16, 2018 21:10:03 Johannes Loher via Digitalmars-d-learn
wrote:
> Is there a way to do this? Here is a naive implementation:
> https://run.dlang.io/is/JKvL80 .
>
> It does not pass `isInputRange` (I think, because the free functions are
> not visible in the scope of
Is there a way to do this? Here is a naive implementation:
https://run.dlang.io/is/JKvL80 .
It does not pass `isInputRange` (I think, because the free functions are
not visible in the scope of `isInputRange`).
Trying to iterate over it with a foreach loop results in a compile error:
Error: