[nem-en] What is additional_decls?

Kamil Skalski kamil.skalski at gmail.com
Fri Nov 17 19:03:36 CET 2006


It is (maybe a little bit inelegant) implementation of parsed members
queue for processing. Initially TypeBuilder holds the pt_tydecl -
parsed tree of class, which contains parsed members inside. Those
members are analyzed between BeforeTypedMemebers and AfterTypedMembers
states. BUT before this processing can happen some macro might add new
members by using Define method - since we cannot modify the original
parse tree of class (and we cannot store new member in typed form, as
typing of members did not begin yet) we must store is somewhere for
later processing.

So in fact processing of parsed members first consider members from
original parse tree and then those added programatically.

On 11/17/06, vc <vc at rsdn.ru> wrote:
> Hi,
>
> What is additional_decls?
> What for it is necessary?
>
> Vlad
>
>
> _______________________________________________
> https://nemerle.org/mailman/listinfo/devel-en
>


-- 
Kamil Skalski
http://nazgul.omega.pl



More information about the devel-en mailing list