So I thought everybody would know what I meant by that question, but the poll that I’m currently running suggests not, so perhaps I’d better explain.
You are currently browsing the monthly archive for April 2009.
Much has been made in the past and again more recently, about the lack of a compiler switch in Delph 2009 to govern the behaviour of the String type.
CodeGear have repeatedly said that it was not possible/practical to provide such a switch, but their advice to anyone concerned about a unilateral change from ANSI to Unicode string in their applications itself suggests that a switch was not only possible, but actually very simple to incorporate. So much so that they could provide it even now without having to change anything already delivered in Delphi 2009 or committed to for Delphi 2010.
Let me explain what I mean.
What can possibly go wrong in the simple act of modifying the message of an exception to add some additional diagnostic information and then re-raising it?
Quite a lot actually, and all from one simple mistake.