On 6/9/15 4:06 AM, Brian Schott wrote:
On Tuesday, 9 June 2015 at 07:49:24 UTC, Shachar Shemesh wrote:
Also, you say 5 seconds as if that's a short amount of time.
If it takes an automatic scanner 5 seconds, it means the amount
of coverage it needs to perform is huge.

If anybody was wondering why DCD doesn't support UFCS, this is the
answer. I can't find a way to make it fast, useful, or compact in terms
of memory use.

I can't see how a UFCS lookup is any slower than a normal function lookup. It's just a rewrite.

i.e.:

a.foo

1. try finding member foo on type a.
2. try finding function foo
  a. If found, find overload that will take a.

What happens as you type:

foo(a

??? how is it any different?

-Steve

Reply via email to