[Issue 1017] CTFE doesn't support (string == string)
d-bugmail at puremagic.com
d-bugmail at puremagic.com
Sat Mar 3 11:00:47 PST 2007
http://d.puremagic.com/issues/show_bug.cgi?id=1017
------- Comment #2 from fvbommel at wxs.nl 2007-03-03 13:00 -------
(In reply to comment #1)
> Put equals() before main() and it should work.
It doesn't:
---
urxae at urxae:~/tmp$ cat test.d
bool equals(char[] a, char[] b)
{
return (a == b);
}
void main()
{
static assert(equals("alphabet", "alphabet"));
}
urxae at urxae:~/tmp$ dmd test.d
test.d(8): static assert (equals("alphabet","alphabet")) is not evaluatable at
compile time
---
--
More information about the Digitalmars-d-bugs
mailing list