Re: // comments
jacob navia wrote, On 27/04/08 11:05:
No, statements of fact.
You are the one playing word games. You know very well that if MS VC++
is invoked in conforming more it *does* produce a diagnostic for //
style comments. That is does not when *not* in conforming mode is *not*
an excuse for your compiler to fail to produce required diagnostics in a
claimed C89 conforming mode.
Also MS VCC++ not producing a diagnostic in non-conforming mode does not
contradict what Richard says above.
Either accept that on your compiler -ansi89 does not make it conforming
(which would seem strange to me but it's your choice) or accept that you
have a bug. Do not try and use the non-conforming mode of other
compilers as an excuse if you are attempting to provide a conforming mode.
--
Flash Gordon
jacob navia wrote, On 27/04/08 11:05:
Flash Gordon wrote:
>
word games, word games
>jacob navia wrote, On 27/04/08 08:59:
>>
>Not at all. You have just demonstrated that what Richard said is true
>for the version you have as well. The compiler emitted a diagnostic.
>There is no requirement for it to produce an error or abort the
>translation. I have already posted saying that all you have to do is
>detect it and issue a warning, as has Keith.
>>Richard Heathfield wrote:
>>>When invoked in conforming mode, Microsoft C (or at least my copy of
>>>it) issues the necessary diagnostic message if you use // in an
>>>erroneous syntactical context.
>>>
>>D:\lcc\mc71\t est>type tt.c
>>// aaaaa
>>>
>>D:\lcc\mc71\t est>cl -W4 tt.c
>>Microsoft (R) C/C++ Optimizing Compiler Version 14.00.50727.762 for x64
>>Copyright (C) Microsoft Corporation. All rights reserved.
>>>
>>tt.c
>>tt.c(2) : warning C4206: nonstandard extension used : translation
>>unit is empty
>>>
>>Of course your version dates from 1991... Always the same word games,
>>half truths, etc. Pure regulars BS.
>>>When invoked in conforming mode, Microsoft C (or at least my copy of
>>>it) issues the necessary diagnostic message if you use // in an
>>>erroneous syntactical context.
>>>
>>D:\lcc\mc71\t est>type tt.c
>>// aaaaa
>>>
>>D:\lcc\mc71\t est>cl -W4 tt.c
>>Microsoft (R) C/C++ Optimizing Compiler Version 14.00.50727.762 for x64
>>Copyright (C) Microsoft Corporation. All rights reserved.
>>>
>>tt.c
>>tt.c(2) : warning C4206: nonstandard extension used : translation
>>unit is empty
>>>
>>Of course your version dates from 1991... Always the same word games,
>>half truths, etc. Pure regulars BS.
>Not at all. You have just demonstrated that what Richard said is true
>for the version you have as well. The compiler emitted a diagnostic.
>There is no requirement for it to produce an error or abort the
>translation. I have already posted saying that all you have to do is
>detect it and issue a warning, as has Keith.
word games, word games
// aaaaaaa
int a=0;
>
Now, cl doesn't give any warning:
D:\lcc\mc71\tes t>cl -W4 -c tt.c
Microsoft (R) C/C++ Optimizing Compiler Version 14.00.50727.762 for x6
Copyright (C) Microsoft Corporation. All rights reserved.
>
tt.c
>
D:\lcc\mc71\tes t>
>
WORD GAMES as always.
int a=0;
>
Now, cl doesn't give any warning:
D:\lcc\mc71\tes t>cl -W4 -c tt.c
Microsoft (R) C/C++ Optimizing Compiler Version 14.00.50727.762 for x6
Copyright (C) Microsoft Corporation. All rights reserved.
>
tt.c
>
D:\lcc\mc71\tes t>
>
WORD GAMES as always.
is invoked in conforming more it *does* produce a diagnostic for //
style comments. That is does not when *not* in conforming mode is *not*
an excuse for your compiler to fail to produce required diagnostics in a
claimed C89 conforming mode.
Also MS VCC++ not producing a diagnostic in non-conforming mode does not
contradict what Richard says above.
Either accept that on your compiler -ansi89 does not make it conforming
(which would seem strange to me but it's your choice) or accept that you
have a bug. Do not try and use the non-conforming mode of other
compilers as an excuse if you are attempting to provide a conforming mode.
--
Flash Gordon
Comment