How about 'pure' for constants?

Sean Kelly sean at f4.ca
Tue Dec 11 09:32:58 PST 2007


guslay wrote:
> Don Clugston Wrote:
> 
>> enum SomeEnormousStruct a = SomeFunction(AnotherEnormousStruct(x, "abc"));
>>
> 
> I thought the enum concept (regardless of the keyword) was for compile time strings and primitives. Is it also supposed to work with structs?

Anything that can be represented as a compile-time constant, I believe. 
  And that includes structs.


Sean



More information about the Digitalmars-d mailing list