[nem-en] How field initializers are parsed?

vc vc at rsdn.ru
Sat Dec 16 20:24:14 CET 2006


> This is caused by some fake code generated in
> macros/Internals.n
> 
>     when (Nemerle.Macros.ImplicitCTX().Manager.IsIntelliSenseMode)
>     { // Add fake method whith body of field initialiser.
>       def n = "_N_field_initialiser__" + f.Name;
>       //Fixme: VladD2: I not understand how add
> NemerleAttributes.SpecialName to this method.
>       Util.locate(val.Location,
>         t.Define (<[ decl: private $(n : usesite) () : void { _ = $val; }
> ]>));
>     }
> 
> 
> No idea why Vlad added this stuff...

Nemerle compiler can type only methods, but Integration need type field
initializer expression.

In normal mode compiler add it's expressions to ctor. But Integration can't
recognize it.




More information about the devel-en mailing list