Re: Cast abuse
- From: Jules Bean <jules jellybean co uk>
- To: Balsa List <balsa-list gnome org>
- Subject: Re: Cast abuse
- Date: Tue, 20 Nov 2001 12:49:41 +0000
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]