Getting the const-correctness of Object sorted once and for all

Steven Schveighoffer schveiguy at yahoo.com
Mon May 14 12:23:59 PDT 2012


On Mon, 14 May 2012 15:07:30 -0400, Andrej Mitrovic  
<andrej.mitrovich at gmail.com> wrote:

> On 5/14/12, Steven Schveighoffer <schveiguy at yahoo.com> wrote:
>> Really, printf is the *only* reason to have this backwards compatibility
>> "feature", and I strongly wish we could get rid of it.
>
> printf is also unique in that it works when called in class
> destructors, which is sometimes needed for debugging (unlike writef
> which wants to allocate memory and then throws).

That's an excellent point.  But what a really mean is, I wish we could get  
rid of the requirement for interoperability between printf and writef.

Of course, we couldn't get rid of printf, it's part of the C runtime!

-Steve


More information about the Digitalmars-d mailing list