Re: how long is double
On Mon, 05 Jan 2004 18:00:17 -0500, Ron Natalie wrote:
[color=blue]
> "Francis Glassborow" <francis@robint on.demon.co.uk> wrote in message
> news:EjxAe+HYje +$Ew3s@robinton .demon.co.uk...
>[color=green]
>> The Standard requires that additions are evaluated on a left to right
>> basis. There are no alternatives. In the case of integer operations the
>> compiler can usually get away with the 'as if' rule and reorder them
>> but in the case of floating point calculations where re-ordering
>> produces a different result it manifestly cannot do that and conform.\[/color]
>
> The standard says NO SUCH THING. With little exception the order of
> operations in C++ is unspecified. Do not confuse parsing
> association/precedence with evaluation.[/color]
I couldn't find it either. Both you and Francis normally know what you are
talking about, so I'll wait for Francis answer before deciding for sure.
M4
On Mon, 05 Jan 2004 18:00:17 -0500, Ron Natalie wrote:
[color=blue]
> "Francis Glassborow" <francis@robint on.demon.co.uk> wrote in message
> news:EjxAe+HYje +$Ew3s@robinton .demon.co.uk...
>[color=green]
>> The Standard requires that additions are evaluated on a left to right
>> basis. There are no alternatives. In the case of integer operations the
>> compiler can usually get away with the 'as if' rule and reorder them
>> but in the case of floating point calculations where re-ordering
>> produces a different result it manifestly cannot do that and conform.\[/color]
>
> The standard says NO SUCH THING. With little exception the order of
> operations in C++ is unspecified. Do not confuse parsing
> association/precedence with evaluation.[/color]
I couldn't find it either. Both you and Francis normally know what you are
talking about, so I'll wait for Francis answer before deciding for sure.
M4
Comment