DMD 0.161 Access Violation

k2 k2_member at pathlink.com
Tue Jun 20 09:28:20 PDT 2006


// A error message is displayed,
// and then the Access Violation happens.
int foo = "foo";

// just Access Violation happens.
int bar = cast(int)cast(char*)"bar";

--
:cannot implicitly convert expression ("foo") of type char[3] to int
(then Access Violation)

DMD 0.161 on Windows 2000





More information about the Digitalmars-d-bugs mailing list