You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+1Lines changed: 1 addition & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -54,6 +54,7 @@ Specifically, the pure attribute conveys compliance with several constraints tha
54
54
For a compiler, these constraints support optimizations, including automatic parallelization on a central processing unit (CPU) or offloading to a graphics processing unit (GPU).
55
55
For a developer, the constraints support refactoring tasks such as code movement.
56
56
57
+
The Fortran standard prohibits input or output in pure procedures, which precludes a common debugging mechanism.
57
58
A developer seeking output inside a procedure presumably has an expectation regarding what ranges of output values represent correct program execution.
58
59
A developer can state such expectations in an assertion such as `call_assert(i>0 .and. j<0)`.
59
60
Enforce the assertion by defining the `ASSERTIONS` macro when compiling.
0 commit comments