The Artima Developer Community
Sponsored Link

.NET Buzz Forum
Poser update

0 replies on 1 page.

Welcome Guest
  Sign In

Go back to the topic listing  Back to Topic List Click to reply to this topic  Reply to this Topic Click to search messages in this forum  Search Forum Click for a threaded view of the topic  Threaded View   
Previous Topic   Next Topic
Flat View: This topic has 0 replies on 1 page
Eric Gunnerson

Posts: 1006
Nickname: ericgu
Registered: Aug, 2003

Eric Gunnerson is a program manager on the Visual C# team
Poser update Posted: Apr 21, 2004 8:19 PM
Reply to this message Reply

This post originated from an RSS feed registered with .NET Buzz by Eric Gunnerson.
Original Post: Poser update
Feed Title: Eric Gunnerson's C# Compendium
Feed URL: /msdnerror.htm?aspxerrorpath=/ericgu/Rss.aspx
Feed Description: Eric comments on C#, programming and dotnet in general, and the aerodynamic characteristics of the red-nosed flying squirrel of the Lesser Antilles
Latest .NET Buzz Posts
Latest .NET Buzz Posts by Eric Gunnerson
Latest Posts From Eric Gunnerson's C# Compendium

Advertisement

A few updates on the results of my “poser” post.

First, anybody who said “anybody who coded that deserves whatever they get” is absolutely correct, but gets no points because that wasn't the answer we were looking for.

I thought it was an interesting question for two reasons (most of which Wes covered in his response, but you may not have read it).

First, when you write:

x += 5;

the compiler write this as

x = x + 5;

which obviously changes the order of evaluation, and the answer to the question.

The second is that C++ evaluates from left to right, so you can reason about how expressions are evaluated.

In C++, it's implementation-defined, and you truly get what you deserve.

Read: Poser update

Topic: Robert Green Talks About Communities for Visual Basic .NET Previous Topic   Next Topic Topic: Another toolkit hits the road: Axis C++ version 1.1 released

Sponsored Links



Google
  Web Artima.com   

Copyright © 1996-2019 Artima, Inc. All Rights Reserved. - Privacy Policy - Terms of Use