Re: Reading complex multidimensionalarrays from C
- From: nospam@xxxxxxxxxxxxx (Richard Maine)
- Date: Sat, 28 Apr 2007 12:39:58 -0700
glen herrmannsfeldt <gah@xxxxxxxxxxxxxxxx> wrote:
Richard Maine wrote:
In fact, the f90 standard requires that *EVERY* real kind have a
corresponding complex kind. I have seen vendors try to rationalize that
they can support a quad precision real without also supporting a quad
precision complex, but I don't think that the rationalizations hold up...
If one implemented REAL*16, but not SELECTED_REAL_KIND(30)
would that qualify as an extension not requiring a corresponding
COMPLEX*32?
Potentially. But I can't make a judgement about the standard conformance
of a compiler based on a hypothetical situation described in a single
sentence. I also doubt (though I'm not sure) that there is a single f90
compiler that does this, which makes the question a bit academic.
Types are pretty fundamental things and show up all over the place in
the language. I can't even come up with a list of all the potentially
relevant things. The selected_real_kind issue was just the first thing
that came to mind, not the final arbiter of whether an implementation
was standard conforming.
The real*16 syntax is nonstandard and thus a compiler can do anything
with it (as long as it has the capability to diagnose the use of the
nonstandard syntax). But supporting a particular real precision involves
a whole lot more than that one bit of syntax. Saying that a hypothetical
compiler does the syntax that way doesn't tell me anything about all the
other issues, which might come up in code not using the nonstandard
syntax.
--
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: Reading complex multidimensionalarrays from C
- From: glen herrmannsfeldt
- Re: Reading complex multidimensionalarrays from C
- From: Wade Ward
- Re: Reading complex multidimensionalarrays from C
- References:
- Reading complex multidimensionalarrays from C
- From: timos
- Re: Reading complex multidimensionalarrays from C
- From: e p chandler
- Re: Reading complex multidimensionalarrays from C
- From: Richard Maine
- Re: Reading complex multidimensionalarrays from C
- From: glen herrmannsfeldt
- Reading complex multidimensionalarrays from C
- Prev by Date: Re: Reading complex multidimensionalarrays from C
- Next by Date: Re: Reading complex multidimensionalarrays from C
- Previous by thread: Re: Reading complex multidimensionalarrays from C
- Next by thread: Re: Reading complex multidimensionalarrays from C
- Index(es):
Relevant Pages
|
|