cannot evalute mixin(uuid("bla")) at compile time

Steven Schveighoffer schveiguy at yahoo.com
Wed Aug 4 05:48:47 PDT 2010


On Wed, 04 Aug 2010 08:35:18 -0400, Richard Webb <webby at beardmouse.org.uk>  
wrote:

> Dwin uses Tango and so only works in D1 anyway, so i don't know if thats  
> the
> problem (Juno uses string already, and i've used that ok in D1 and D2).

All I'm saying is that is what the error message is saying "you're trying  
to mixin something that's not a string.  It needs to be string"

Other than that, I'm not sure how to make dwin or juno work with a proper  
string type.

>
> I've managed to get Juno working with a recent D2 before, but with the  
> latest SVN
> version i get:
>
> ///////////////////////////////////////////////
> phobos\std\range.d(645): Error: cannot evaluate  
> empty((const(immutable(char)[])))
> at compile time
>
> phobos\std\range.d(645): Error: Integer constant expression expected  
> instead of
> cast(uint)(1 + cast(int)empty((const(immutable(char)[]))))
> ///////////////////////////////////////////////
>
> I haven't worked out whats causing the problem yet, though looking at  
> the Phobos
> code i'm not sure what the
>
>        is(char[1 + Range.empty]))

Not sure either, but empty called on a string should be evaluatable at  
compile time.  You should file a bug with a minimal example.

-STeve


More information about the Digitalmars-d-learn mailing list