DIP10005: Dependency-Carrying Declarations is now available for community feedback

Anonymouse via Digitalmars-d digitalmars-d at puremagic.com
Wed Dec 14 09:28:16 PST 2016


On Wednesday, 14 December 2016 at 17:24:29 UTC, Anonymouse wrote:
> The with keyword then?
>
> bool equal(R1, R2)
> with (std.range : isInputRange, isOutputRange) && (std.stdio : 
> writeln) && (std.algorithm)
> if (isInputRange!R1 && isInputRange!R2)
> { ... }

I guess the &&s there don't make sense. Maybe with a semicolon 
delimeter instead.

bool equal(R1, R2)
with (std.range : isInputRange, isOutputRange; std.stdio : 
writeln; std.algorithm)
if (isInputRange!R1 && isInputRange!R2)
{ ... }


More information about the Digitalmars-d mailing list