|
Archives
D Programming
DD.gnu digitalmars.D digitalmars.D.bugs digitalmars.D.dtl digitalmars.D.dwt digitalmars.D.announce digitalmars.D.learn digitalmars.D.debugger C/C++ Programming
c++c++.announce c++.atl c++.beta c++.chat c++.command-line c++.dos c++.dos.16-bits c++.dos.32-bits c++.idde c++.mfc c++.rtl c++.stl c++.stl.hp c++.stl.port c++.stl.sgi c++.stlsoft c++.windows c++.windows.16-bits c++.windows.32-bits c++.wxwindows digitalmars.empire digitalmars.DMDScript |
D - [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/
Dec 20 2003
|