identof || toIdent - feature suggestion / question
John Reimer
terminal.node at gmail.com
Sat Jul 1 12:07:57 PDT 2006
Tom S wrote:
> Would it be hard to add a construct to D that would convert a
> compile-time string to an identifier ?
>
> E.g.
>
> int identof("foo");
> // would be equivalent to:
> int foo;
> // and
> identof("int") foo;
> // and
> identof("int") identof("foo");
>
>
That's a neato idea. These start to look like features that make
languages like Lisp so powerful.
More information about the Digitalmars-d
mailing list