Re: [OT] Re: to guru : strange C++ operator behaviour
[color=blue]
> What you apparently fail to realize is that the compiler *cannot* detect
> undefined behavior in general, and thus cannot assign behavior to it,
> nor can a compiler control what happens in the computer system when a
> program attempts to do something it shouldn't. under those circumstances.[/color]
[color=blue][color=green]
>> The
>> standard may state that a specific type of coding constitutes undefined
>> behavior under the standard, but that does NOT mean anyone actually[/color][/color]
writes[color=blue][color=green]
>> compilers that take malicious or bizarre actions under those[/color][/color]
circumstances.
[color=blue]
> Never was the claim.[/color]
I understand your point(s) very well. But look at what I was responding to
again:
[color=blue][color=green]
>> The
> > compiler is allowed to do whatever it wants, including formatting your
> > harddisk.[/color][/color]
It very clearly states the the compler is "allowed" to do whatever it wants.
Well, as I said in my post, a compiler that does "whatever it wants",
especially if it reformats your hard drive because of a coding error, is not
a compiler that will sell very well, because people's hard drives will
ineveitably get reformatted.
-Howard
[color=blue]
> What you apparently fail to realize is that the compiler *cannot* detect
> undefined behavior in general, and thus cannot assign behavior to it,
> nor can a compiler control what happens in the computer system when a
> program attempts to do something it shouldn't. under those circumstances.[/color]
[color=blue][color=green]
>> The
>> standard may state that a specific type of coding constitutes undefined
>> behavior under the standard, but that does NOT mean anyone actually[/color][/color]
writes[color=blue][color=green]
>> compilers that take malicious or bizarre actions under those[/color][/color]
circumstances.
[color=blue]
> Never was the claim.[/color]
I understand your point(s) very well. But look at what I was responding to
again:
[color=blue][color=green]
>> The
> > compiler is allowed to do whatever it wants, including formatting your
> > harddisk.[/color][/color]
It very clearly states the the compler is "allowed" to do whatever it wants.
Well, as I said in my post, a compiler that does "whatever it wants",
especially if it reformats your hard drive because of a coding error, is not
a compiler that will sell very well, because people's hard drives will
ineveitably get reformatted.
-Howard
Comment