Private function in Fortran

前端 未结 4 1384
感情败类
感情败类 2021-02-07 11:59

How do I declare a private function in Fortran?

4条回答
  •  时光说笑
    2021-02-07 12:32

    I've never written a line of FORTRAN, but this thread about "Private module procedures" seems to be topical, at least I hope so. Seems to contain answers, at least.


    jaredor summary:

    The public/private attribute exists within modules in Fortran 90 and later. Fortran 77 and earlier--you're out of luck.

提交回复
热议问题