[Issue 3744] __traits getMember error in checking of second argument
d-bugmail at puremagic.com
d-bugmail at puremagic.com
Wed Jan 27 00:53:19 PST 2010
http://d.puremagic.com/issues/show_bug.cgi?id=3744
Don <clugdbug at yahoo.com.au> changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |clugdbug at yahoo.com.au
--- Comment #2 from Don <clugdbug at yahoo.com.au> 2010-01-27 00:53:18 PST ---
(In reply to comment #1)
> I've tried to fix this problem and I've found this part of code, what can say
> about this problem:
> >e = e->optimize(WANTvalue | WANTinterpret);
> >if (e->op != TOKstring)
> (traits.c)
> 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.
e->optimize(WANTvalue|WANTinterpret) should have turned it into a TOKstring. If
it's still a TOKvar, then the problem is in e->optimize or earlier.
--
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
More information about the Digitalmars-d-bugs
mailing list