Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

SOURCE keyword and overloaded functions #16

Open
brtnfld opened this issue Feb 19, 2016 · 0 comments
Open

SOURCE keyword and overloaded functions #16

brtnfld opened this issue Feb 19, 2016 · 0 comments

Comments

@brtnfld
Copy link

brtnfld commented Feb 19, 2016

This is #69 from the sourceforge page.

In FORTRAN I can overload a function and have multiple interfaces for the same function, for example:

INTERFACE write_data
MODULE PROCEDURE write_int
MODULE PROCEDURE write_real
END INTERFACE

SUBROUTINE write_int( InVar )
INTEGER :: Invar
END SUBROUTINE write_int
SUBROUTINE write_real( InVar )
REAL :: Invar
END SUBROUTINE write_int

Now I want to provide using the SOURCE keyword the interface for write_data, and not the source for write_int and write_real subroutines. The problem is the source interface does not exists for write_data.

It would be nice if I could do something like

!****s* H5A write_data
!
! NAME
! write_data
!
! INPUT
! Myvalue - Print value
!
! SOURCE
! SUBROUTINE write_data(Myvalue)
!*****

and have items in the SOURCE block written as source code without the "!"

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant