|The World According to Nick|
|My take on Software, Technology, Politics, and anything else I feel like talking about.|
Thursday, May 27, 2004
Found this little story of a programming gotcha at Peter Golde's Weblog via Cyrus's Weblog (he's a VS.NET Core guy at Microsoft). It talks about the dangers of having immutable objects within a struct (which is mutable)... Here is the code snippet that caused him issues:
So what's wrong with this code? I actually did figure this out as soon as I saw the code... but it's a good reminder anyway. Go to Peter Golde's Weblog for the answer and explanation.
Post a Comment
Home: Wauwatosa, WI, United States
I'm a Software Consultant in the Milwaukee area. Among various geeky pursuits, I'm also an amateur triathlete, and enjoy rock climbing. I also like to think I'm a political pundit.
View My Profile
Previous PostsHelping Young Drivers
CodeProject for Anyone
Word of the Day
When Is a Convention Not Really a Convention?
Blog vs. Surf
Care to Speak About This Ted?
I Didn't Say That... My Speechwriters Did
Programming in the Green
Destroying Elegant... no... Beautiful Code
Did You Know?
Personal LinksCarnival of the Badger
The Coding Monkey
Blog Critics Reviews
Design By maystar