Re: Is it time to legitimise REAL*8 etc?
- From: nospam@xxxxxxxxxxxxx (Richard Maine)
- Date: Fri, 27 Jun 2008 18:39:15 -0700
James Giles <jamesgiles@xxxxxxxxxxxxxxxx> wrote:
Well this is exacly the opposite of what Van Snyder told me
back when NON_KIND was removed as the keyword and LEN
was put in its place. He insisted that LEN type parameter were
only for string lengths and array sizes.
Sorry, but he was just wrong. Or maybe that was what he proposed. But it
sure is not what passed into the standard.
But you people need to get your stories straight.
Van and I have disagreed about more than a few things (though I have
much respect for him, including the fact that he is a *VERY* hard and
dilligent worker - makes disagreeing with him hard because he is really
persistent and will bury you in lots of material). That kind of thing is
why it is sometimes hard to explain the reasons why some things are so
other than that it is what got enough votes. What got enough votes to
get into the standard does not limit length parameters to lengths. To
the extent that you might get different answers from Van and me, the
definitive answer is in reading the standard itself. I don't think
you'll find any such restriction.
You will find that length type parameters can be used for lengths. But
you won't find that they can't be used for anything else. You will find
specific other things that they can't be used for - such as
initialization expressions (which in turn limits lots of places). But
you certainly won't find anything like "can only be used for string
lengths and array sizes".
It turns out that there aren't many places where you can usefully use
them, but that's just a lack of places that fit rthaer than any explicit
restriction. One "interesting" form of use is as a readonly component.
You can define a length type parameter value when you create an object,
perhaps by allocation. You can then "read" the value much like a
component (indeed even using notation like that for a component), but as
it isn't actually a component,you can't change its value without
destroying and recreating the object.
--
Richard Maine | Good judgement comes from experience;
email: last name at domain . net | experience comes from bad judgement.
domain: summertriangle | -- Mark Twain
.
- Follow-Ups:
- Re: Is it time to legitimise REAL*8 etc?
- From: Richard Maine
- Re: Is it time to legitimise REAL*8 etc?
- From: James Giles
- Re: Is it time to legitimise REAL*8 etc?
- References:
- Is it time to legitimise REAL*8 etc?
- From: Clive Page
- Re: Is it time to legitimise REAL*8 etc?
- From: John Appleyard
- Re: Is it time to legitimise REAL*8 etc?
- From: Dan Nagle
- Re: Is it time to legitimise REAL*8 etc?
- From: glen herrmannsfeldt
- Re: Is it time to legitimise REAL*8 etc?
- From: Dan Nagle
- Re: Is it time to legitimise REAL*8 etc?
- From: glen herrmannsfeldt
- Re: Is it time to legitimise REAL*8 etc?
- From: Dan Nagle
- Re: Is it time to legitimise REAL*8 etc?
- From: GaryScott
- Re: Is it time to legitimise REAL*8 etc?
- From: James Giles
- Re: Is it time to legitimise REAL*8 etc?
- From: Richard Maine
- Re: Is it time to legitimise REAL*8 etc?
- From: James Giles
- Is it time to legitimise REAL*8 etc?
- Prev by Date: Re: Is it time to legitimise REAL*8 etc?
- Next by Date: Re: Is it time to legitimise REAL*8 etc?
- Previous by thread: Re: Is it time to legitimise REAL*8 etc?
- Next by thread: Re: Is it time to legitimise REAL*8 etc?
- Index(es):
Relevant Pages
|