CT usage only in executable

strtr strtr at sp.am
Fri Jul 16 15:06:27 PDT 2010


== Quote from Daniel Murphy (yebblies at nospamgmail.com)'s article
> I think if you use enum instead of const/immutable the compiler is not meant
> to put them in the executable (it might anyway in some/all cases).
> eg.
> module main;
> enum CT_STRING = "int i=0;";
> void main(){
> mixin( CT_STRING );
> }

I'm using D1.

Should I report this as a bug?


More information about the Digitalmars-d-learn mailing list