digitalmars.D.bugs - repost: type.init not matching instance.init
- Sean Kelly (16/16) Jul 23 2004 I've only tested this for character types. Code is pretty self-explanat...
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
Jul 23 2004








Sean Kelly <sean f4.ca>