error in return statement

2009-02-10 Thread zorran
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

Re: Russian and other national languages support

2009-02-07 Thread zorran
I only say about source code format, but not internal presentation strings!

Russian and other national languages support

2009-02-03 Thread zorran
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!"); // Здравствуй, мир! } ==

crash D1 compiler

2009-02-01 Thread Zorran
This code crash D1 compiler (v1.039) import std.stdio; void main() { string ss="sample"; printf("%s", cast(char*)(ss+"\0") ); } ===