possibly error in return statement:
bool fn1(Object o1, Object o2 ) {
return o1.opEquals(o2); // opEquals return int
}
compiler writes:
"Error: cannot implicitly convert expression (o1.opEquals(o2)) of type int to
bool"
But:
bool fn2() {
return 1;
}
compile ok
I only say about source code format, but not internal presentation
strings!
Russian language not working
in comments and strings by default
with ANSI coding (code page)
Compiler write error - "invalid UTF-8 sequence"
==
void main()
{
string s = "Что-то по
русски"; // some text in russian
printf("hello, world!"); //
Здравствуй,
мир!
}
==
This code crash D1 compiler (v1.039)
import std.stdio;
void main()
{
string ss="sample";
printf("%s", cast(char*)(ss+"\0") );
}
===