CTFE and structs question
g
g at g-desktop.com
Sat Nov 7 17:20:13 PST 2009
At what point structs are supported in CTFE.
Cause this fails in dmd 2.036:
import std.metastrings;
pragma(msg,toStringNow!(A.init.a));
struct A{
uint a;
}
with this message (note that the end seems truncated):
g at g-desktop:~/Documentos/NCHESS$ dmd oh
oh.d(3): Error: no property 'a' for type 'A'
toStringNow!(__error)
g at g-desktop:~/Documentos/NCHESS$
also, ¿Is there any way to generate structs with ctfe or it is obligatory to use templates?
More information about the Digitalmars-d-learn
mailing list