[J3] please try running this program

Steve Lionel steve at stevelionel.com
Mon Oct 24 13:39:25 UTC 2022


On 10/24/2022 8:20 AM, Robert Corbett via J3 wrote:

> INTEGER(KIND(X)) Y

Aside from the scoping question, this declaration improperly assumes 
that one can declare an integer using the kind number of a real. If you 
had used REAL instead of INTEGER it would have been fine.

On Bob's question, I see that the wording change in F08 Corrigendum 1 
came from interp F03/123, which contains a similar example.  The 
original paper for this edit was 10-244. I haven't yet found a paper 
that removes the wording added in that paper, but I see that F18's 
version is simpler and does not attempt to state the scope in which the 
variable is declared.

Steve
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://mailman.j3-fortran.org/pipermail/j3/attachments/20221024/e0b7201b/attachment.htm>


More information about the J3 mailing list