Account Options

  1. Sign in
The old Google Groups will be going away soon, but your browser is incompatible with the new version.
Google Groups Home
« Groups Home
Message from discussion Transfer and variables that don't use all their storage space.
The group you are posting to is a Usenet group. Messages posted to this group will make your email address visible to anyone on the Internet.
Your reply message has not been sent.
Your post was successful
 
From:
To:
Cc:
Followup To:
Add Cc | Add Followup-to | Edit Subject
Subject:
Validation:
For verification purposes please type the characters you see in the picture below or the numbers you hear by clicking the accessibility icon. Listen and type the numbers you hear
 
Ken Fairfield  
View profile  
 More options Apr 9 2007, 6:34 pm
Newsgroups: comp.lang.fortran
From: Ken Fairfield <K...@Napili.Fairfield.Home>
Date: Mon, 09 Apr 2007 15:34:05 -0700
Local: Mon, Apr 9 2007 6:34 pm
Subject: Re: Transfer and variables that don't use all their storage space.

Richard Maine wrote:
> Brooks Moses <bmoses-nos...@cits1.stanford.edu> wrote:

>> Richard Maine wrote:
[...]
>> Would it be allowable, at least, for a compiler to throw an error and
>> refuse to compile "transfer(transfer(-5_8, L), -5_8)" at all?

> I think you could argue that. But then you might get users who
> considered it a poor quality of implementation; that one is harder. I
> have trouble imagining why anyone would ever want to do such a strange
> thing, but James Buskirk can probably come up with something useful. :-)

I'd be one of those who thought is was poor quality of implementation!

I expect TRANSFER to very much be a replacement for EQUIVALENCE,
similar to the remarks of Mike Metcalf in this thread.  It is
perfectly standard-conforming to equivalence integer, logical, real
and complex entities.  Now the standard says that assigning to
one member of an equivalence list makes reference to any of the others
be undefined, IIRC.  But it doesn't say anything about zero-ing out
"unused" bits in the logical member after assignment to the real or
integer member, etc.

I most emphatically agree with other comments in this thread that
conversions done by assignment should NOT be done by TRANSFER.  That
would sort of defeat it's whole raison d'etre, wouldn't it?

    -Ken
--
Ken & Ann Fairfield
What:  Ken dot And dot Ann
Where: Gmail dot Com


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.