How to translate this C++ preprocessor declaration in D?
Ali Çehreli
acehreli at yahoo.com
Fri May 24 17:18:37 PDT 2013
On 05/24/2013 05:02 PM, Heinz wrote:
> Hi,
>
> I'm porting a C++ header (i'm not a C++ programmer) and came with the
> following declaration:
>
> #define my_id 'asdf'
>
> How does this translate to D?
>
> Thanks
If it really has single quotes then it is a multi-character literal,
value of which happens to be implementation-dependent. What is actually
in place of asdf there? May be we can guess the intent better.
Ali
More information about the Digitalmars-d-learn
mailing list