C++Guns – RoboBlog


storing into constants (Bug of the day 4)

Filed under: Allgemein — Tags: — Thomas @ 17:05

From the Layhey Fortran 95 compiler user guide.

Protext Constant Arguments
Compile only. Default npca
Specify -pca to prevent invoked subprograms from storing into constants.

call sub(5)
print *, 5
subroutine sub(i)
i = i + 1

This example would print 5 using -pca and 6 using -npca.

Greatest bullshit I've ever seen!
They create a compiler who can change compile time constants and make it the default behaviour.

No Comments

No comments yet.

RSS feed for comments on this post.

Sorry, the comment form is closed at this time.

Powered by WordPress