how to define my own traits

XavierAP via Digitalmars-d-learn digitalmars-d-learn at
Mon Mar 27 02:51:53 PDT 2017

On Monday, 27 March 2017 at 00:49:14 UTC, Moritz Maxeiner wrote:
> Have you tried it without the dummy parameter on the example 
> given in the bug report [2]?

I see, thanks for finding it! Looks a bit hacky but I can live 
with it.

Indeed if I remove the argument from Phobos, Martin's example 
breaks again.

Incidentally, everything keeps working if I qualify the function 
literal as
(inout int = 0) pure

More information about the Digitalmars-d-learn mailing list