开发者

ACSL / Fortran printing variable values in strings like a printf when it shouldn't?

I'm currently trying to learn ACSL, a precompiled language for Fortran, and have found that when trying to debug by outputting values to the screen to follow the values, this lang开发者_StackOverflowuage will actually dump the value in place of the string, as would happen in a printf. Does anyone know what's happening here?

o = 5
write(*,*) 'o=',o
print *, 'o=',o

will output:

5=5

Anyone know how to stop this?


Well, after some time working with the ACSL language, I never did actually find a way to escape output variable names. Turns out this particular ACSL interpreter went through C program that would then interpret the ACSL output, which was apparently the cause of the issue. I'm cleaning out some of my unanswered questions, and won't delete this question because I do not want to remove any of what little information about this language does exist out there.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜