От: | _nn_ | www.nemerleweb.com | |
Дата: | 14.10.10 08:49 | ||
Оценка: |
public macro AnonymousClassNormalCtor(params ctor_def : array[expr])
syntax("new", "(", ctor_def, ")") // 1
{
// ...
}
public macro AnonymousClassTupleCtor(e) // 2
syntax("new", e)
{
// ...
}
def _ : IAnonymous = new (a = "qwerwqr", b, "blabla".Replace("b", "1").Length);