[nem-en] Macros and extension methods
Alejandro Serrano
trupill at yahoo.es
Sat Jun 10 09:04:42 CEST 2006
Michal Moskal escribió:
> 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.
>
In case there are two members that can be used (for example, the class
already has a Select method) the compiler shows an error or uses the
non-extension method (as in C#)
______________________________________________
LLama Gratis a cualquier PC del Mundo.
Llamadas a fijos y móviles desde 1 céntimo por minuto.
http://es.voice.yahoo.com
More information about the devel-en
mailing list