Re: enumeration declaration

"Roman Yakovenko" <[email protected]> Tue, 8 May 2007 06:51:36 +0300
Newsgroups gmane.comp.documentation.synopsis
Message-ID <[email protected]>
On 5/8/07, Stefan Seefeld <[email protected]> wrote:
> Roman Yakovenko wrote:
> > Hi. May be I am doing something wrong, but for some reason the
> > enumeration declaration doesn't report the actual value.
> >
> > Another issue I have with it is that the value is string, may I ask to
> > add value_xxx functionality, which will return a numeric value of the
> > enumerator.
>
> The value is presently not available because it requires the evaluation
> of (potentially) complex compile-time expressions.
> I think it should be possible to add support at least for literals,
> and fall back to the current un-decoded string whenever anything else
> is found. Would that help ?

Yes.

> (Note that complete support for parsing compile-time expressions is
>  in the works with the new C++ frontend (trunk), and so the AST will
>  eventually be modify to reflect that.)

In such case I prefer to make the integration against new frontend.
Can you give instruction how I use it?

Thanks

-- 
Roman Yakovenko
C++ Python language binding
http://www.language-binding.net/