--- Comment #1 from iorlas <> 2010-01-27 00:14:04 PST ---
I've tried to fix this problem and I've found this part of code, what can say
about this problem:
>Object *o = (Object *)args->data[0];
>Expression *e = isExpression((Object *)args->data[1]);
>if (!e)
>{   error("expression expected as second argument of __traits %s", 
>    goto Lfalse;
>e = e->optimize(WANTvalue | WANTinterpret);
>if (e->op != TOKstring)
>{   error("string expected as second argument of __traits %s instead of %s = 
>%d", ident->toChars(), e->toChars(), e->op);
>    goto Lfalse;
Problem in this code. This code want to see const string expression(every const
string in the code). Program fails in this string:
>if (e->op != TOKstring)
Cuz e->op == TOKvar.

As i think, need to get an string from var and send it into StringExp instance
for next operations, but i donts know how.
Now i trying to find similar code in other sources.

Configure issuemail:
------- You are receiving this mail because: -------

Reply via email to