Whilst updating our course material for the start of the
academic year Jane and I have been putting some examples
togther that show the benefits of defensive programming.
the examples highlight
1. array subscript checking
use the compiler switches
2. passing an array as a parameter to a subroutine/function
array going out of bounds
all one source file
3. as above, but two source files
4. as above with interface block
5. getting the arguments wrong
6. as above with interface block
does anyone know of any tools that would automatically
generate an interface block for a subroutine or function
from the source?
----------------------
Ian Chivers
[log in to unmask]
Jane Sleightholme
[log in to unmask]
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
|