[nem-en] Macros and extension methods

Michal Moskal michal.moskal at gmail.com
Sat Jun 10 04:00:10 CEST 2006


On 6/9/06, Kamil Skalski <kamil.skalski at gmail.com> wrote:
> >From what I see the algorithm in compiler is:
> - add all available extension methods in given GlobalEnv
> - each x.foo  is treated as overload EXT.foo  (x, ...)
> - now as we have all the possible overloads (among them EXT.foo
> (x,..)), we can chose the best method

This is exactly what happens.

> I can see this is the right implementation, I guess Michal did it
> after the first implementation, which just added the extension methods
> to their types.

Yeah, this is what C# 3.0 spec says.

-- 
   Michał


More information about the devel-en mailing list