comp.lang.ada
 help / color / mirror / Atom feed
From: "Pat Rogers" <progers@classwide.com>
Subject: Re: Faulty languages and Liability
Date: Mon, 24 Jun 2002 14:05:09 GMT
Date: 2002-06-24T14:05:09+00:00	[thread overview]
Message-ID: <pGFR8.34861$Yp5.4260857011@newssvr11.news.prodigy.com> (raw)
In-Reply-To: PNvR8.12669$cE5.8689@nwrddc02.gnilink.net

"Hyman Rosen" <hyrosen@mail.com> wrote in message
news:PNvR8.12669$cE5.8689@nwrddc02.gnilink.net...
> Pat Rogers wrote:
> > No, that allows the compiler to prevent dangling references.
>
> How's that? That is, what is the difference between the compiler
> noticing which objects you take the address of, or you telling
> the compiler which objects you intend to take the address of?

Yes, from that angle there is no difference. (Note, however, that there is
certainly a difference from taking the address of something, which the compiler
cannot help you with, and using the checked approach we're discussing via
'Access and aliased objects.  Taking the address of something for the purpose of
converting it to an access value is generally not recommended!)

However, marking objects as aliased does have an important effect that the
compiler cannot achieve by just noticing all the references (because the aliased
object will likely be compiled separately from the references).  Specifically,
it prevents the object from being stored in a way that precludes the later
access. For example, it prevents the object from being stored in a register.
See RM 13.1{24}.


--
Patrick Rogers                       Consulting and Training in:
http://www.classwide.com          Real-Time/OO Languages
progers@classwide.com               Hard Deadline Schedulability Analysis
(281)648-3165                                 Software Fault Tolerance





  reply	other threads:[~2002-06-24 14:05 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
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 [this message]
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