Ellery Newcomer ellery-newcomer at
Sun Jan 30 14:15:37 PST 2011

On 01/30/2011 03:47 PM, Philippe Sigaud wrote:
> On Sun, Jan 30, 2011 at 19:15, Ellery Newcomer
> <ellery-newcomer at>  wrote:
>> doh.
>> when I did something like
>> enum string s = tct!(int,int);
>> it just took it and didn't complain that it didn't know the value at compile
>> time.
> I think in this case, your asking for an enum string, er, 'propagates'
> the compile-time-ness to tct!(int,int). Everything is calculated at
> CT, because it's doable.
> But when you used pragma(msg, someString), the compiler doesn't know
> someString can be entirely known at CT.

actually, it didn't calculate it and if I passed it to a function call, 
then it would complain that it didn't know the value

More information about the Digitalmars-d-learn mailing list