Module name compile time constant?

Janice Caron caron800 at googlemail.com
Tue Apr 15 00:12:13 PDT 2008


On 15/04/2008, davidl <davidl at 126.com> wrote:
>  I want some magic of module.name to get the current module name in compile
> time string form.

Yeah, basically you want to add __MODULE__ to the list of "special tokens" in
http://digitalmars.com/d/2.0/lex.html

I think it would be easy for Walter to add, and I don't think it's
particularly controversial, so why not just go ahead and add an
enhancement request to Bugzilla.



More information about the Digitalmars-d mailing list