Talk:Comments: Difference between revisions

Content added Content deleted
(→‎[[C]]: #if 0 and syntax errors: BTW, thanks for the ref)
Line 38: Line 38:


::Egads! The reason I disbelieved you is that I have never used a C compiler which actually obeyed this part of the standard. The snippet compiles fine in gcc 3.4 and 4.0.1. I even tried with '''-std=c99 -pedantic-errors''' options for all supported standards. I also tried with just the preprocessor '''cpp''' in isolation.
::Egads! The reason I disbelieved you is that I have never used a C compiler which actually obeyed this part of the standard. The snippet compiles fine in gcc 3.4 and 4.0.1. I even tried with '''-std=c99 -pedantic-errors''' options for all supported standards. I also tried with just the preprocessor '''cpp''' in isolation.
::I beilieve this section should be prefaced with "'''Standard:''' ANSI (obsolete)" or a list of compilers which exhibit this behavior. Which C/C++ compiler are you using which fails on the above snippet? --[[User:IanOsgood|IanOsgood]] 09:57, 30 September 2007 (MDT)
::I believe this section should be prefaced with "'''Standard:''' ANSI, but not GCC" or a list of compilers which exhibit this behavior. Which C/C++ compiler are you using which fails on the above snippet? --[[User:IanOsgood|IanOsgood]] 09:57, 30 September 2007 (MDT)
::BTW, thanks for the detailed references, Ce! Perhaps Rosetta Code should be more like Wikipedia and encourage references on the pages themselves. It might avoid this kind of argument in the future. --[[User:IanOsgood|IanOsgood]] 10:58, 30 September 2007 (MDT)