RE: [Dev-C++] Dev-C++ Bug? Using backslash within comments
Open Source C & C++ IDE for Windows
Brought to you by:
claplace
|
From: Reid T. <Rei...@at...> - 2005-07-06 19:21:59
|
Jonathan Dearborn wrote: > Well, Reid, that sounds like good enough evidence. I'm not positive > on what the "other" compiler is, but I think it is Visual C++. At > any rate, thanks for clearing that up. =20 > In my opinion, it shouldn't > be read by the compiler because the preprocessor should take out all > commented text.=20 That is what is happening, the line following the 'intended' comment line with the terminating '\' is considered as part of the 'intended' comment and is being handled as such ( i.e. it is not converted to executable form by the compiler -- whether that means that it is not passed to the compiler, or is passed but is ignored by the compiler 'because it's a comment' I don't know.) >Maybe I've just never heard of extending a one-line > comment and this is how it's done. I didn't want Dev-C++ to be the > odd one out if more compilers ignored it (since I only use Dev-C++).=20 > I now doubt that it'll ever be a big enough problem unless this > rarely-used feature to overlook backslashes at the end of comments in > a (most likely) single compiler is used in popular free source. I > don't see that happening more than where I got it from. Thanks for > your help, Reid.=20 >=20 > _________________________________________________________________ > Express yourself instantly with MSN Messenger! Download today - it's > FREE! http://messenger.msn.click-url.com/go/onm00200471ave/direct/01/ reid |