Re: Funny loop with post-increment.
Ryan Heath <[email protected]> Tue, 19 Feb 2008 09:48:04 +0100
| Newsgroups | gmane.comp.windows.devel.dotnet.clr |
|---|---|
| Message-ID | <[email protected]> |
On Feb 19, 2008 9:39 AM, Jon Skeet <[email protected]> wrote: > Which feature exactly? The feature that the returned value of i++ is i and not i+1. > Now code like this should be avoided, certainly - but try prohibiting it > within the language spec! (The spec would be very, very tricky to get > right - and it might not even be possible.) Why is it not simply the obvious value? That could have been documented. Btw. Is the returned value of ++i, i or i+1? // Ryan =================================== This list is hosted by DevelopMentor® http://www.develop.com View archives and manage your subscription(s) at http://discuss.develop.com