I've got all these little rants queued up for days when I'm too busy to post. And Raymond has all these little articles queued up while he's on vacation. And in one of those weird Brouwer Fixed Point Theorem moments of synchronicity, Raymond just beat me to it. His post on how people write incorrect implementations of QueryInterface is different than the one I was going to post only insofar as his is more complete and has fewer pirate jokes.
In short: I've come across plenty of code where the QueryInterface responds to IPersistBlahBlahBlah but not IPersist. Drives me nuts! Argh! Read Raymond's post for more details.
http://weblogs.asp.net/oldnewthing/archive/2004/03/26/96777.aspx
Comment Notification
If you would like to receive an email when updates are made to this post, please register here
Subscribe to this post's comments using
About Eric Lippert
Eric Lippert is a senior developer on the Microsoft C# compiler team. Before that he worked on the framework of Visual Studio Tools For Office. Before that, he worked on the compilers, runtimes and tools for VBScript, JScript, Windows Script Host and other Microsoft Scripting technologies. He lives in Seattle and spends his free time editing books about programming languages, playing the piano, and trying to keep his tiny sailboat upright in Puget Sound.