site Search Results
Results for: Andrew Koenig
Order the NEW
Discounted Dr. Dobb's Developer Library DVD 6
Purchase the fully searchable DVD for $59.95 - a 60% discount! Features
21 years of Dr. Dobb's Journal, 15 years of Sys Admin
magazine, 14+ years of C/C++ Users Journal, 1 year worth of Dr.
Dobb's Digest, podcasts, videos and more! Order Now.
Asymmetric Bounds, Part 4: Pragmatic Advantages
People who come to C++ (or C) from languages such as Fortran or Basic sometimes argue that the C++ way of doing things is counterintuitive. - C/C++
Asymmetric Bounds, Part 3: Generic Programming and First Principles
The ability to allow index variables to stray safely outside their bounds is intimately tied to the data structures that those index variables represent. - C/C++
Asymmetric Bounds, Part 2: Overrun Is Hard to Avoid
Some programming languages allow programmers to say explicitly what range an integer variable is allowed to take on. - C/C++
Asymmetric Bounds, Part 1: What Are They?
C and C++ programmers usually express ranges asymmetrically - C/C++
Unsigned Arithmetic: Useful but Tricky
In general, arithmetic that combines signed and unsigned values yields an unsigned result. - C/C++
Why Does C++ Allow Arithmetic on Null Pointers?
My last two notes discussed a subtle language-design issue that simplifies programmers' lives in ways that they often don't suspect. This theme seems useful, so I'll continue it. - C/C++
The Solution to Last Week's Language-Design Puzzle
Anomalies, and design strategies for avoiding them, are among the many reasons that programming-language design is harder than it looks. - C/C++
A Language-Design Puzzle in Operator Overloading
Resolving an overloaded function call involves finding a single possibility that is strictly better than all the others. - C/C++
A Personal Note About Argument-Dependent Lookup
One of the comments on my article last week noted that argument-dependent lookup in C++ is often called "Koenig lookup". I didn't invent it, but unfortunately, I don't know who did, so I don't know where the credit — or blame — is really due. - C/C++
Object Swapping, Part 7: How Do You Call It?
We've talked about why swapping is important, and about how to use it to implement other operations such as assignment. We shall now look more closely at how to use it. - C/C++