inverse of std.demangle?

Jacob Carlborg doob at me.com
Thu Jul 11 09:38:45 PDT 2013


On 2013-07-11 14:39, Adam D. Ruppe wrote:

> Aye, it is. Even here it was doing it on every single loop iteration.
> Disgusting. I was hoping setting it as an enum would ctfe it and just be
> static data, but nope.

Have you tried:

enum string[23] _primitives = [ ... ];
static immutable primitives = _primitives;

-- 
/Jacob Carlborg


More information about the Digitalmars-d-learn mailing list