From: Hyman Rosen <hyrosen@mail.com>
Subject: Re: Faulty languages and Liability
Date: Sun, 23 Jun 2002 04:50:03 GMT
Date: 2002-06-23T04:50:03+00:00 [thread overview]
Message-ID: <%rcR8.6726$cE5.5860@nwrddc02.gnilink.net> (raw)
In-Reply-To: wccelf05m1z.fsf@shell01.TheWorld.com
Robert A Duff wrote:
> Yes. Also, you can't make a pointer to a stack variable (or component,
> etc) without explicitly declaring it "aliased".
That is only a notational device to inform the reader of the code.
> Oh, yeah, you can't "cast away const" in Ada. At least not with a
> normal type_conversion.
C++ has const_cast<> for this, although an old C-style cast must
continue to work for backwards compatibility. And since C++ adopted
the mutable keyword, it's not even especially needed at all.
Notice that in both C and C++ it is illeall to cast away constness
from an actual const object. You may only do it to something which
is "accidentally" const because of parameter passing or references.
next prev parent reply other threads:[~2002-06-23 4:50 UTC|newest]
Thread overview: 81+ messages / expand[flat|nested] mbox.gz Atom feed top
2002-06-16 2:10 Faulty languages and Liability David Botton
2002-06-16 3:18 ` Lyle McKennot
2002-06-16 4:58 ` Robert C. Leif
2002-06-16 4:58 ` Robert C. Leif
2002-06-16 11:52 ` Hyman Rosen
2002-06-16 13:07 ` Larry Kilgallen
2002-06-17 14:56 ` Marin David Condic
2002-06-18 5:00 ` Hyman Rosen
2002-06-18 13:35 ` Chad R. Meiners
2002-06-18 14:59 ` Hyman Rosen
2002-06-18 19:25 ` Wes Groleau
2002-06-19 17:18 ` Robert I. Eachus
2002-06-19 19:31 ` Larry Kilgallen
2002-06-19 17:57 ` Wes Groleau
2002-06-16 14:33 ` David Botton
2002-06-16 18:28 ` Mike Silva
2002-06-17 0:48 ` Hyman Rosen
2002-06-17 4:09 ` David Botton
2002-06-17 12:59 ` Larry Kilgallen
2002-06-17 7:04 ` Mike Silva
2002-06-17 8:29 ` AG
2002-06-17 13:21 ` Hyman Rosen
2002-06-17 14:37 ` Larry Kilgallen
2002-06-17 3:16 ` Robert C. Leif
2002-06-17 13:36 ` Hyman Rosen
2002-06-17 14:51 ` Larry Kilgallen
2002-06-17 14:26 ` Hyman Rosen
2002-06-17 15:55 ` Larry Kilgallen
2002-06-17 16:29 ` Marin David Condic
2002-06-18 5:18 ` Hyman Rosen
2002-06-18 13:10 ` Marin David Condic
2002-06-18 21:27 ` Robert A Duff
2002-06-18 20:02 ` John Kern
2002-06-18 22:17 ` Larry Kilgallen
2002-06-19 15:47 ` John Kern
2002-06-19 18:06 ` Larry Kilgallen
2002-06-17 16:25 ` Marin David Condic
2002-06-18 19:29 ` Wes Groleau
2002-06-19 12:58 ` Marin David Condic
2002-06-17 19:00 ` Mike Silva
2002-06-17 20:27 ` Hyman Rosen
2002-06-17 21:07 ` Marin David Condic
2002-06-18 1:09 ` Chad R. Meiners
2002-06-18 4:52 ` Hyman Rosen
2002-06-18 13:49 ` Chad R. Meiners
2002-06-18 14:15 ` Marin David Condic
2002-06-19 12:35 ` Larry Kilgallen
2002-06-19 14:20 ` Marin David Condic
2002-06-20 13:50 ` Larry Kilgallen
2002-06-20 16:53 ` Wes Groleau
2002-06-20 18:56 ` Larry Kilgallen
2002-06-20 15:21 ` Hyman Rosen
2002-06-21 17:21 ` Matthew Woodcraft
2002-06-21 22:00 ` Robert A Duff
2002-06-23 4:50 ` Hyman Rosen [this message]
2002-06-23 9:13 ` Matthew Woodcraft
2002-06-23 10:29 ` Hyman Rosen
2002-06-23 13:21 ` Matthew Woodcraft
2002-06-23 18:24 ` Hyman Rosen
2002-06-23 19:27 ` Pat Rogers
2002-06-24 2:50 ` Hyman Rosen
2002-06-24 14:05 ` Pat Rogers
2002-06-18 6:14 ` Mike Silva
2002-06-18 8:53 ` newsfraser
2002-06-18 19:33 ` Wes Groleau
2002-06-18 12:49 ` Steve O'Neill
2002-06-18 13:49 ` Marin David Condic
2002-06-17 19:00 ` Mike Silva
2002-06-17 20:38 ` Hyman Rosen
2002-06-18 3:45 ` Mike Silva
2002-06-18 15:11 ` Hyman Rosen
2002-06-18 15:54 ` chris.danx
2002-06-18 18:01 ` Marin David Condic
2002-06-18 17:12 ` Larry Kilgallen
2002-06-17 7:34 ` AG
2002-06-18 21:17 ` Robert A Duff
2002-06-16 22:26 ` Ted Dennison
2002-06-17 14:38 ` Marin David Condic
2002-06-18 8:57 ` chris.danx
2002-06-19 0:34 ` tmoran
2002-06-19 20:28 ` Mike Silva
replies disabled
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox