Panopticon Central
a blog on Visual Basic, .NET and other stuff
Home
::
Contact
::
Syndication
::
Login
496 Posts :: 19 Stories :: 3378 Comments :: 637 Trackbacks
News
The information in this weblog is provided "AS IS" with no warranties, and confers no rights.
My Book
Picture
My Recent Posts
Article Categories
Articles
Personal FAQs
VB FAQs
Archives
August, 2008 (1)
July, 2008 (3)
June, 2008 (1)
May, 2008 (3)
April, 2008 (1)
March, 2008 (1)
February, 2008 (3)
December, 2007 (3)
November, 2007 (3)
October, 2007 (4)
September, 2007 (2)
August, 2007 (1)
July, 2007 (3)
June, 2007 (3)
May, 2007 (10)
April, 2007 (6)
March, 2007 (3)
February, 2007 (3)
January, 2007 (3)
December, 2006 (7)
November, 2006 (4)
October, 2006 (2)
September, 2006 (7)
August, 2006 (4)
July, 2006 (2)
June, 2006 (5)
May, 2006 (7)
April, 2006 (7)
March, 2006 (5)
February, 2006 (6)
January, 2006 (5)
December, 2005 (10)
November, 2005 (12)
October, 2005 (9)
September, 2005 (21)
August, 2005 (6)
July, 2005 (8)
June, 2005 (8)
May, 2005 (4)
April, 2005 (12)
March, 2005 (8)
February, 2005 (8)
January, 2005 (6)
December, 2004 (6)
November, 2004 (7)
October, 2004 (16)
September, 2004 (5)
August, 2004 (8)
July, 2004 (15)
June, 2004 (20)
May, 2004 (13)
April, 2004 (19)
March, 2004 (23)
February, 2004 (13)
January, 2004 (3)
December, 2003 (12)
November, 2003 (17)
October, 2003 (25)
September, 2003 (28)
August, 2003 (15)
July, 2003 (21)
Post Categories
Blogging
Microsoft
Personal
Samples
Technology
VB10
Visual Basic
Visual Basic 2005
Visual Basic 2008
Writing
Microsoft Blogs
Brad Abrams
Cyrus Najmabadi
Dare Obasanjo
Eric Lippert
Larry Osterman
Raymond Chen
Soma
VB Team
VS Data Team
Samples
VBParser (7.1.0.41022)
VBParser (8.0.0.60327)
Technical Blogs
3Leaf
Cameron Beccario
Carl Franklin
Cory Smith
Joel on Software
Lambda the Ultimate
Mike Gunderloy
Mike Schinkel
Rocky Lhotka
VB Links
Lang Spec v7.1
Lang Spec v8.0
Lang Spec v9.0
VB Developer Center
VB Futures
The joys of ++ and --
This
sort of thing is one of the reasons why we have
avoided increment and decrement operators
in VB.
posted on Wednesday, September 01, 2004 11:56 AM
Feedback
#
re: The joys of ++ and --
9/2/2004 12:37 AM
Simon Geering
What madness that is, I don't think vb developers are mission out on much from not having increment and decrement operators, other than the migraines every now an then :)
#
Les op
9/2/2004 12:57 AM
Richard Clark
#
re: The joys of ++ and --
9/2/2004 8:05 AM
Michael Russell
My biggest problem with these oh-so-wonderful operators is the undefined order of side-effects.
About four years ago, I was working as a test lead on a game, and we were trying to upgrade from Visual C++ 4.2 to Visual C++ 6.0 so we could use the newest DirectX libraries to help us out with a bug. The project was over 320KLOC, and large portions had been written by developers that were no longer around.
Once the project had been upgraded, we did a build and began testing, and found that the entire graphics engine was no longer working correctly. After tracing into the code, we found wonderful gems similar to this:
m_i++ = o->f(++m_i, ++m_i);
In VC4.2, that would compile out one way. In VC6, it would compile another way. We ended up staying in VC4.2 so that we could actually ship.
#
Blog link of the week 36
9/5/2004 11:54 AM
Daniel Moth
http://www.zen13120.zen.co.uk/Blog/2004/09/blog-link-of-week-36.html
Post Feedback
Title:
Name:
Url:
Comments:
Remember Me?
Powered by:
Copyright © Paul Vick