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

Richard Webb webby at beardmouse.org.uk
Wed Aug 4 05:35:18 PDT 2010


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).

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]))

is supposed to be doing.


More information about the Digitalmars-d-learn mailing list