[nem-en] field init (778)

Dmitry Ivankov divanorama at gmail.com
Fri Mar 9 09:00:00 CET 2007


For now fields with initializers are not guaranted to be initialized within
macro-generated constructors.
Maybe field initializers shouldn't be generated with macro?, after all
it is a core feature, compiler must initialize them in any ctor.
I think that adding macro attributes like before/after othermacro isn't
enough (in that case macrowriters will be responsible for field init)
I suggest tweaking macroengine (run StaticInitializer only after all other
macros) and/or convert StaticInitializer from macro to final
method of typebuilder or smth like that.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: /mailman/pipermail/devel-en/attachments/20070309/95230681/attachment.html


More information about the devel-en mailing list