Is it necessary to check an optional argument before passing it to another optional argument?

拟墨画扇 提交于 2019-11-28 13:38:39

It is not necessary to check to presence of an optional dummy argument before passing it as an actual argument to another optional dummy argument.

This is allowed by 12.5.2.12 paragraph 4 (ISO/IEC 1539-1 (Draft 7 June 2010) aka Fortran 2008) regarding optional actual arguments that are not present:

Except as noted in the list above, it may be supplied as an actual argument corresponding to an optional dummy argument, which is then also considered not to be present.

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!