On Wednesday, 17 June 2020 at 16:01:29 UTC, Paul Backus wrote:
A while ago, I collaborated briefly with Adam Kowalski from the Dlang discord server on some code to emulate C++-style argument-dependent lookup in D. Using that code, your example above would be written:

    Geometry.create(r.extended).measure;
    Geometry.create(c.extended).measure;

Here's a gist with the code, along with a small example:

https://gist.github.com/pbackus/0a70419eb8bece52f3a08edfe7b6019b

If anyone thinks it's worthwhile, I can toss this up on Dub. Personally, I've never had much use for it in my own projects.

Yeah I can see a use for this. If have had to refactor things before because I was hitting this restriction.

          • Re: tardy ... jmh530 via Digitalmars-d-announce
            • Re: t... jmh530 via Digitalmars-d-announce
            • Re: t... Atila Neves via Digitalmars-d-announce
              • R... jmh530 via Digitalmars-d-announce
              • R... Atila Neves via Digitalmars-d-announce
              • R... jmh530 via Digitalmars-d-announce
              • R... Atila Neves via Digitalmars-d-announce
              • R... jmh530 via Digitalmars-d-announce
              • R... Paul Backus via Digitalmars-d-announce
              • R... jmh530 via Digitalmars-d-announce
              • R... Sebastiaan Koppe via Digitalmars-d-announce
              • R... Atila Neves via Digitalmars-d-announce
  • Re: tardy v0.0.1 - Runtime ... Stanislav Blinov via Digitalmars-d-announce

Reply via email to