Sign in
I Love that New Syntax Smell
C++ articles, code snippets, musings, etc. from Andy RichIf this is your first time here, you may want to check out my blog introduction.
Translate This Page
Translate this page
Powered by
Microsoft® Translator
Options
Email Blog Author
RSS for posts
Atom
RSS for comments
OK
Search
Tags
A day in the life
articles
errata
et cetera
musings
post responses
snippets
Windows Forms
Archive
Archives
June 2006
(1)
August 2005
(1)
June 2005
(1)
January 2005
(1)
November 2004
(1)
October 2004
(1)
September 2004
(4)
August 2004
(3)
July 2004
(2)
June 2004
(3)
April 2004
(1)
March 2004
(2)
February 2004
(1)
January 2004
(6)
December 2003
(18)
November 2003
(9)
Posts
Subscribe via RSS
Sort by:
Most Recent
|
Most Views
|
Most Comments
Excerpt View
|
Full Post View
I Love that New Syntax Smell
Deterministic Finalization I - a primer for CLR Dispose
Posted
over 9 years ago
by
arich
10
Comments
A large subject like DF needs a few posts. My generalized plan to lay it out will start by describing the CLR's Dispose pattern, how our DF pattern works, and finally how the two patterns fit together. The CLR's Dispose patterns can be quite confusing...
I Love that New Syntax Smell
Another good customer bug
Posted
over 9 years ago
by
arich
1
Comments
Reader Andy Neilson writes in with another bug: The current compiler implementation has some problems. If the variable is a field of this, then the compiler will die. For example: class MyClass { public: int i; void Foo() { array<int>^ x = {1, 2...
I Love that New Syntax Smell
I love when customers find bugs!
Posted
over 9 years ago
by
arich
2
Comments
Reader Rob Walker asks: Is there a neat way of handling dictionaries? I have a Dictionary<Guid, Object^> and want to iterate over the values. Currently I have to use the syntax: for each(KeyValuePair<Guid, Object^> v in dict) { v.Value .....
I Love that New Syntax Smell
The C++ "for each" syntax
Posted
over 9 years ago
by
arich
15
Comments
For Each? I won't go into a huge justification - suffice to say, there are some instances where it is nice to be able to iterate over a set, and perform operations on each member of that set. A good primer might be the MSDN node on C# foreach . A basic...
Page 1 of 1 (4 items)