🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: comp.std.c++
Article #245

Re: Re: casting "const" to "non-const"

#245
From: Dave Decot
Date: Thu, 02 Aug 1990 00:44
11 lines
873 bytes
> >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
Technical Details
Message-ID: <30360001@hpisod2.HP.COM>
Path: arc1-ca.pugleaf.net!utzoo!attcan!uunet!samsung!sdd.hp.com!hplabs!hpcc01!hpcuhb!hpda!hpcupt1!hpisod2!decot
References: <1913@ux.acs.umn.edu>

Show Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!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