No household is perfect

Tobias Pankrath tobias at pankrath.net
Wed Dec 11 01:38:56 PST 2013


On Wednesday, 4 December 2013 at 17:11:07 UTC, Walter Bright 
wrote:
> 2. was the motivation for ADL (aka "Koenig Lookup")
>
> There was no way I was going to put ADL into D :-)
---
// lib.d
struct Struct {}
// more.d
import lib.d
int front(Struct s) {}
void popFront(ref Struct s) {}
// main.d
import lib;
import more;

import std.range;

pragma(msg, isInputRange!(Struct)); // outputs 'false'
void main() {}
---

Any plans/ways to make external methods work here?


More information about the Digitalmars-d mailing list