Path: utzoo!attcan!uunet!samsung!sdd.hp.com!hplabs!hpcc01!hpcuhb!hpda!hpcupt1!hpisod2!decot From: decot@hpisod2.HP.COM (Dave Decot) Newsgroups: comp.std.c++ Subject: Re: Re: casting "const" to "non-const" Message-ID: <30360001@hpisod2.HP.COM> Date: 2 Aug 90 00:44:41 GMT References: <1913@ux.acs.umn.edu> Organization: Hewlett Packard, Cupertino Lines: 11 > >I disagree with the statement "In C ... a cast is always supposed to work.." > >In fact, it does not always work, although you are always allowed to try > >without the compiler getting too upset. For instance, casting a pointer > > Small terminology mistake. I meant that it was always supposed to > compile, NOT always supposed to work. No problem. But I still disagree. If the compiler knows it's not going to work, I'd much prefer that it tell me and fail to compile it. Dave Decot