Re: Reading complex multidimensionalarrays from C
- From: "Wade Ward" <invalid@xxxxxxxxxxx>
- Date: Mon, 30 Apr 2007 00:16:44 -0400
"Richard Maine" <nospam@xxxxxxxxxxxxx> wrote in message
news:1hxa5eb.hwhr9n15mjp7sN%nospam@xxxxxxxxxxxxxxxx
glen herrmannsfeldt <gah@xxxxxxxxxxxxxxxx> wrote:See below.
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 conformanceI specifically recall what the C standard has to say about Glen's question,
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.
if it were posed of the C language. My guess is that the wording is very
much the same in fortran. I think the spirit of it says "yes" to his
question.
--
WW
.
- 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
- Re: Reading complex multidimensionalarrays from C
- From: Richard Maine
- 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
|