aboutsummaryrefslogtreecommitdiff
path: root/example_packages/hello_complex/source/farewell_m.f90
blob: fbc45edf22d8278868f6d1b2db071708cde5af89 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
module farewell_m
    use subdir_constants, only: FAREWELL_STR
    implicit none
    private

    public :: make_farewell
contains
    function make_farewell(name) result(greeting)
        character(len=*), intent(in) :: name
        character(len=:), allocatable :: greeting

        greeting = FAREWELL_STR // name // "!"
    end function make_farewell
end module farewell_m