Comment (computer programming): Difference between revisions

Content deleted Content added
Fortran: Clarify Fortran support
Fortran: Block comments with preprocessing
Line 666:
 
Free-form Fortran, also introduced with Fortran 90, only supports this latter style of comment.
 
Although not a part of the Fortran Standard, many Fortran compilers offer an optional C-like [[preprocessor]] pass. This can be used to provide block comments:
 
<syntaxhighlight lang="Fortran">
#if 0
This is a block comment spanning
multiple lines.
#endif
program comment_test
print '(A)', 'Hello world' ! also a comment
end program
</syntaxhighlight>
 
====MATLAB====