Re: Cast abuse



On Tue, Nov 20, 2001 at 10:58:39AM +0100, Matthias Andree wrote:
> Well, you will HAVE TO use casts away from void * in C++, and it's

Because C++ has a strictly typed generic allocator - new - which C
does not have.  For this reason, casts from void* to anything are
allowed in C; there's less reason to allow them in C++.

> pretty reasonable to do that in C as well. 

Disagree.  What's the point of an unnecessary cast.

Jules



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]