July 23, 2004 repost: type.init not matching instance.init | ||||
|---|---|---|---|---|
| ||||
I've only tested this for character types. Code is pretty self-explanatory.
D:\code\d>type test6.d
import std.stdio;
int main()
{
char c;
wchar w;
dchar d;
printf( "%d\t%d\n%d\t%d\n%d\t%d\n",
char.init, c.init, wchar.init, w.init, dchar.init, d.init );
return 0;
}
D:\code\d>test6
-1 255
65535 1245183
65535 65535
| ||||
Copyright © 1999-2021 by the D Language Foundation
Permalink
Reply