Re: enumeration declaration

Stefan Seefeld <[email protected]> Mon, 07 May 2007 19:17:15 -0400
Newsgroups gmane.comp.documentation.synopsis
Message-ID <[email protected]>
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 ?

(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.)


Regards,
		Stefan

-- 

      ...ich hab' noch einen Koffer in Berlin...