Group: comp.lang.fortran · Group Profile
Author: Craig PowersCraig Powers Date: Aug 4, 2008 13:11
rudra wrote:
> hello friends,
> in Chapman's book, the "Good programming practice" advices to prefer
> module over interface to make explicit interface of a subroutine/
> function. where i have many subroutine contained in a module, it is
> understood that i can use onle the subroutine which is needed instead
> of make interface for each subroutine.
> but if i have only one subroutine(say), is there any advantage of
> using module over interface?
> or in general,is there any advantage of using module over interface
> except decreasing typo labour?
Typo labour = greater opportunity to make mistakes which results in bugs
in your program.
In other words, that alone is reason enough to prefer a module.
|