From: dontmailme AT iname DOT com (Steamer) Newsgroups: comp.os.msdos.djgpp Subject: Re: Windows ME and DJGPP Date: Wed, 31 Jan 2001 22:33:27 GMT Organization: always disorganized Lines: 36 Message-ID: <3a7892a5.48700062@news.freeserve.net> References: <3a78130f DOT 16030234 AT news DOT freeserve DOT net> NNTP-Posting-Host: modem-118.algae-blennie.dialup.pol.co.uk X-Trace: news7.svr.pol.co.uk 980980408 5606 62.136.222.118 (31 Jan 2001 22:33:28 GMT) NNTP-Posting-Date: 31 Jan 2001 22:33:28 GMT X-Complaints-To: abuse AT theplanet DOT net X-Newsreader: Forte Free Agent 1.11/32.235 To: djgpp AT delorie DOT com DJ-Gateway: from newsgroup comp.os.msdos.djgpp Reply-To: djgpp AT delorie DOT com Rudolf Polzer wrote: > > > > Compiling: x.cpp > > > > In function `double intconv(double>': > > > > x.cpp (9) Error: instantiated from here > > > > (Of course, this isn't an error, it's just a RHIDE misinterpretation > > of a warning message, which was what Rudolf Polzer was pointing out. > > I thought this was fixed in newer versions of RHIDE.) > > I have version 1.4.7 of Nov 15 1998 in Linux (do not know my version in > DOS, but both have the same bug). Is there a newer one, and if yes, where > to get it? I got 1.4.7 from a "RHIDE homepage". Maybe it hasn't been fixed then. I seem to recall someone saying it had been fixed, but as I don't use RHIDE I'm not really sure. > > In any case, C++ is only slightly more strongly typed than C, > > and there is no difference at all as far as initializing an int > > with a double is concerned. > > Not really. C++ supports const, while C does not Yes, C borrowed 'const' from C++ at a late stage, and its meaning was diluted in the process. > (and allegro is buggy > here: functions like textout take a char * where a const char * would be > correct; this causes code lines like > textout (x, y, const_cast (s.c_str ())); > which is very ugly). Why don't the allegroers just insert the const > keywords? Probably because Allegro is a C library, and const correctness is of little importance in C. Why don't you just insert the const keywords, and send them the diffs?