How about 'pure' for constants?

Jarrett Billingsley kb3ctd2 at yahoo.com
Tue Dec 11 09:33:09 PST 2007


"guslay" <guslay at gmail.com> wrote in message 
news:fjmhgg$tv2$1 at digitalmars.com...
> 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?
>
>

Why not?  If they're made of strings and primitives, it seems perfectly 
fine.  They're value types, after all. 





More information about the Digitalmars-d mailing list