Redian新闻
>
visual fortran区别6位以上的变量名吗?
avatar
g*i
2
i tried in compaq visual fortran 6.6
the file names can be long, and visual fortran knows the difference.

【在 bd 的大作中提到】
: 它对变量名的长度有限制吗?
avatar
bd
3
我的是5。0,
其实我自己用小程序试过,好象区分的,总是有点不放心。
当初fortran77的语法是:变量名一般不超过6位,超过的只取前6位。

【在 g***i 的大作中提到】
: i tried in compaq visual fortran 6.6
: the file names can be long, and visual fortran knows the difference.

avatar
S*y
4
If you're using Fortran 77, the restriction is still there.
Even though your compiler allows you using more than 6 characters,
it's just the extension of your compiler, rather than the standard of F77.
If you're using Fortran 90, there is no restriction on the length
of the variable names. This is the standard that any F90 compiler
should comply with.

【在 bd 的大作中提到】
: 我的是5。0,
: 其实我自己用小程序试过,好象区分的,总是有点不放心。
: 当初fortran77的语法是:变量名一般不超过6位,超过的只取前6位。

avatar
bd
5
visual fortran默认是F90吧,其实我用的语法是F77的,但测试时发现确实可以区分6位
以上的。

【在 S***y 的大作中提到】
: If you're using Fortran 77, the restriction is still there.
: Even though your compiler allows you using more than 6 characters,
: it's just the extension of your compiler, rather than the standard of F77.
: If you're using Fortran 90, there is no restriction on the length
: of the variable names. This is the standard that any F90 compiler
: should comply with.

相关阅读
logo
联系我们隐私协议©2024 redian.news
Redian新闻
Redian.news刊载任何文章,不代表同意其说法或描述,仅为提供更多信息,也不构成任何建议。文章信息的合法性及真实性由其作者负责,与Redian.news及其运营公司无关。欢迎投稿,如发现稿件侵权,或作者不愿在本网发表文章,请版权拥有者通知本网处理。