# operator under C implementation in D1

Sam Hu samhu.samhu at gmail.com
Thu Mar 12 18:19:11 PDT 2009


I know a little that in C there is a # operator which under a macro can return any type's value in character format.Just wanna know whether there is an equivelent implementation in D1.Say,in C using a/m macro can easily output enum's character value other than integer.It would be grateful if anybody would like to paste a few lines of code to demostrate such implementation.

Regards,
Sam


More information about the Digitalmars-d-learn mailing list