Direct indexing of function return value in Fortran

前端 未结 3 784
南旧
南旧 2020-12-02 00:30

Is there possibility to use indexing directly on a function\'s return value? Something like this:

readStr()(2:5)

where readStr()

3条回答
  •  感情败类
    2020-12-02 01:23

    No.

    But if it bothers you, you can write your own user defined functions and operators to achieve a similar outcome without having to store the result of the function reference in a separate variable.

提交回复
热议问题