identof || toIdent - feature suggestion / question

Sean Kelly sean at f4.ca
Sat Jul 1 09:38:42 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 ?

This would certainly help with porting C libraries.  It may also be 
useful for some code generation tools, though could result in some ugly 
code as well.  It's for this last reason that I'm hesitant to endorse 
it, even though I think it could be very handy in some cases.


Sean



More information about the Digitalmars-d mailing list