CTFE implementation

BCS ao at pathlink.com
Fri Feb 8 12:50:54 PST 2008


Reply to Frank,

> Bjoern schrieb:
> 
>> I am very afraid I miss something. so it's just an idea.
>> 
> Because then i need to have the constant declaration/initialization
> split into two different places.
> I just wonder if it could be done in a nice way with CTFE. Then a
> diff-tool could find matching lines by comparing the java and the
> ported
> version.

have you considered a template?

template GUID(char[GUID_LEN] str)
{
   const GUID_str GUID = ....;
}




More information about the Digitalmars-d-learn mailing list