December 21, 2003 [Bug] Internal error | ||||
---|---|---|---|---|
| ||||
I found another "Internal error" message.
--------------------
import std.stream; /* for stdin */
import std.file; /* stdin is a File object */
extern (C) int system (char *);
void main()
{
printf("I'm waiting for you to press another key...\n\0");
stdin.getch();
}
--------------------
The resulting error is:
Internal error: ..\ztc\cod1.c 2240
Maybe getch() isn't a valid property for stdin, but the compiler should at least specify the problem.
(By the way, I realize I can use getch() from std.c.stdio for the same purpose, I just thought this was an obscure error that may cause more serious problems elsewhere.)
--
Justin
http://jcc_7.tripod.com/d/
|
Copyright © 1999-2021 by the D Language Foundation