From: sampson@nosc.mil (Charles H. Sampson)
Subject: Re: Fortran's Equivalence
Date: 1997/04/01
Date: 1997-04-01T00:00:00+00:00 [thread overview]
Message-ID: <1997Apr1.170552.24429@nosc.mil> (raw)
In-Reply-To: mheaney-ya023680002903971544290001@news.ni.net
In article <mheaney-ya023680002903971544290001@news.ni.net>,
Matthew Heaney <mheaney@ni.net> wrote:
>In article <1997Mar28.170935.19124@nosc.mil>, sampson@nosc.mil (me) wrote:
>
>> Unchecked_conversion should be used when you absolutely have to and
>>avoided in all other circumstances. It is definitely not portable.
>
>What is non-portable about using Unchecked_Conversion to convert an integer
>to a record? The only time you have a portability problem with UC is when
>the target type is unconstrained. Since the target type is constrained,
>and can be specified using a portable representation clause, using UC
>seems like the most sensible thing to do.
Whoops! I've got at least a moderate amount of egg on my face! As
well as I can tell, this particular use of Unchecked_Conversion is now
100% portable. (I was thinking with a 12-year old mindset. More about
that in another post.) Of course, in general Unchecked_Conversion is
not portable.
However, one point of this part of my response was to encourage the
use of Unchecked_Conversion when it's the right thing to do. I didn't
want to look like one of those people who say that it is evil and should
be avoided at all times.
Charlie
next prev parent reply other threads:[~1997-04-01 0:00 UTC|newest]
Thread overview: 40+ messages / expand[flat|nested] mbox.gz Atom feed top
1997-03-25 0:00 Fortran's Equivalence Viqar Abbasi
1997-03-26 0:00 ` FORTRAN's Equivalence Nick Roberts
1997-03-26 0:00 ` Fortran's Equivalence Robert Dewar
1997-03-26 0:00 ` Robert A Duff
1997-03-29 0:00 ` Matthew Heaney
1997-03-29 0:00 ` Robert Dewar
1997-04-02 0:00 ` JP Thornley
1997-03-26 0:00 ` Michael F Brenner
1997-03-26 0:00 ` Larry Kilgallen
1997-03-28 0:00 ` Oliver Kellogg
1997-03-29 0:00 ` Matthew Heaney
1997-03-29 0:00 ` Robert Dewar
1997-04-01 0:00 ` Keith Thompson
1997-04-01 0:00 ` Robert Dewar
1997-04-01 0:00 ` Robert A Duff
1997-04-01 0:00 ` Robert Dewar
1997-04-04 0:00 ` Keith Thompson
1997-04-04 0:00 ` Keith Thompson
1997-04-04 0:00 ` Robert Dewar
1997-04-08 0:00 ` Keith Thompson
1997-04-04 0:00 ` Robert Dewar
1997-04-07 0:00 ` Viqar Abbasi
1997-04-08 0:00 ` Charles H. Sampson
1997-04-08 0:00 ` Robert Dewar
[not found] ` <1997Apr15.163103.27481@nosc.mil>
1997-04-16 0:00 ` Robert Dewar
1997-04-08 0:00 ` Matthew Heaney
1997-04-09 0:00 ` Stephen Leake
1997-04-09 0:00 ` Robert Dewar
1997-04-10 0:00 ` Simon Wright
1997-04-10 0:00 ` Robert Dewar
1997-04-07 0:00 ` Keith Thompson
1997-04-07 0:00 ` Charles H. Sampson
1997-04-07 0:00 ` Charles H. Sampson
1997-03-29 0:00 ` Robert Dewar
1997-03-26 0:00 ` Tom Moran
1997-03-28 0:00 ` Charles H. Sampson
1997-03-29 0:00 ` Matthew Heaney
1997-04-01 0:00 ` Charles H. Sampson [this message]
1997-03-29 0:00 ` Matthew Heaney
1997-03-29 0:00 ` Robert Dewar
replies disabled
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox