From: "Nick Roberts" <Nick.Roberts@dial.pipex.com>
Subject: Re: Alternate to Unchecked_Conversion - Portable?
Date: 1999/02/25
Date: 1999-02-25T00:00:00+00:00 [thread overview]
Message-ID: <7b2j34$drp$3@plug.news.pipex.net> (raw)
In-Reply-To: 7avplr$jl5$1@nnrp1.dejanews.com
robert_dewar@my-dejanews.com wrote in message
<7avplr$jl5$1@nnrp1.dejanews.com>...
|In article <m3sobxfpwd.fsf@mheaney.ni.net>,
| Matthew Heaney <matthew_heaney@acm.org> wrote:
|>> A copy doesn't necessarily occur. If I use a constant
|declaration:
|>
|> procedure Op (O : T) is
|>
|> OO : constant TT := UC (O);
|> begin
|>
|> then (I assume) there isn't any copy of the source
|object.
|
|I would be very surprised if a compiler did NOT make a copy
|in this case, it would certainly be an interesting
|optimization if it did not. What is the basis of your
|assumption here.
If the type T were not a 'small' type (which can fit into one or two
registers) -- and I think that's what the context of this thread suggests --
I would be surprised by an optimising compiler which did make a copy.
Whyever should it make a copy?
-------------------------------------
Nick Roberts
-------------------------------------
next prev parent reply other threads:[~1999-02-25 0:00 UTC|newest]
Thread overview: 38+ messages / expand[flat|nested] mbox.gz Atom feed top
1999-02-21 0:00 Alternate to Unchecked_Conversion - Portable? Steve Doiel
1999-02-21 0:00 ` Steve Quinlan
1999-02-22 0:00 ` robert_dewar
1999-02-21 0:00 ` Matthew Heaney
1999-02-22 0:00 ` robert_dewar
1999-02-22 0:00 ` Samuel Mize
1999-02-22 0:00 ` Christopher Green
1999-02-23 0:00 ` Matthew Heaney
1999-02-23 0:00 ` Samuel Mize
1999-02-24 0:00 ` robert_dewar
1999-02-25 0:00 ` Nick Roberts [this message]
1999-02-25 0:00 ` robert_dewar
1999-02-26 0:00 ` Nick Roberts
1999-02-26 0:00 ` Matthew Heaney
1999-02-27 0:00 ` Nick Roberts
1999-02-24 0:00 ` robert_dewar
1999-02-23 0:00 ` Christopher Green
1999-02-25 0:00 ` robert_dewar
1999-02-24 0:00 ` Christopher Green
1999-02-25 0:00 ` robert_dewar
1999-02-25 0:00 ` dennison
1999-02-25 0:00 ` Christopher Green
1999-02-26 0:00 ` robert_dewar
1999-02-26 0:00 ` Christopher Green
1999-03-01 0:00 ` Nick Roberts
1999-03-01 0:00 ` dewar
1999-03-01 0:00 ` Nick Roberts
1999-02-26 0:00 ` Tom Moran
1999-02-26 0:00 ` robert_dewar
1999-02-26 0:00 ` Robert A Duff
1999-02-28 0:00 ` robert_dewar
1999-02-23 0:00 ` Christopher Green
1999-02-25 0:00 ` robert_dewar
1999-02-24 0:00 ` Christopher Green
1999-02-25 0:00 ` robert_dewar
1999-02-26 0:00 ` Dale Stanbrough
1999-02-26 0:00 ` Robert A Duff
1999-02-22 0:00 ` Tom Moran
replies disabled
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox