dstep/internal/Reflection.d:205:0 expression "objcObject_"c == cast(char[])field is not constant or does not evaluate to a bool
Robert Lumley
rlumley at telmaron.com
Tue Jan 24 00:43:52 PST 2012
hi all :) i'm new to D and i'm trying to get step to compile on
the Mac. below is the template that gives the error:
dstep/internal/Reflection.d:205:0 expression "objcObject_"c ==
cast(char[])field is not constant or does not evaluate to a bool
private template hasFieldImpl (T, string field, size_t i)
{
static if (T.tupleof.length == i)
const hasFieldImpl = false;
else static if (T.tupleof[i].stringof[1 + T.stringof.length + 2
.. $] == field)
const hasFieldImpl = true;
else
const hasFieldImpl = hasFieldImpl!(T, field, i + 1); }
there error is on the line else static..
thanks very much
More information about the Digitalmars-d-learn
mailing list