Question about overloading in fortran90# Computation - 科学计算
w*w
1 楼
I read a fortran90 book. It says subroutines and functions
can be overloaded in fortran90. But it seems this is not
true overloading. It can just realize polymorphism.
Say if I inherit a module from a parent module and I want
to overload a subroutine in the parent module but still
keepping the shape of the subroutine, i.e. arguments of the
subroutines are the same. Can this be done in fortran90?
can be overloaded in fortran90. But it seems this is not
true overloading. It can just realize polymorphism.
Say if I inherit a module from a parent module and I want
to overload a subroutine in the parent module but still
keepping the shape of the subroutine, i.e. arguments of the
subroutines are the same. Can this be done in fortran90?