[nem-en] Macros and extension methods

Alejandro Serrano trupill at yahoo.es
Fri Jun 9 17:42:11 CEST 2006


Kamil Skalski escribió:
> If you want the Select method to be taken from the context of actual
> file (the place where macro is expanded), then use
>
> <[ ($collection).$("Select" : usesite) (fun (parameter: $item) { $body 
> }) ]>
>
> otherwise do
>
> using System.Query;
>
> macro @select ...
>
> I guess that you should do the second approach, so writing
>
> select x from ...;
>
> would always mean the same thing, independently of what usings are in
> this place.
>
Yeah, I also think it's better, but for now I would like to follow the 
C# 3.0 specification, so these query expressions could be used as in 
that language. Thanks a lot for the help, I was getting crazy because of 
the error messages.

		
______________________________________________ 
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