0
이 두 함수가 모호성을 어떻게 생성하는지 이해할 수 없습니다. 형식을 정수 또는 실수로 변경하면 컴파일러에서 모호성에 플래그를 지정하지 않습니다.함수 모호성
Function split_to_str_unidim &
( &
a, delim, mold, &
pos &
) &
Result (bn)
Character (len=*), Intent (in) :: a, delim, mold
Character (len=*), Intent (in), Optional :: pos
Character (len=65), Allocatable :: bn(:)
End Function
Function split_to_str &
( &
a, delim, b1, b2, &
b3, b4, b5, b6, b7, b8, &
pos &
) &
Result (b)
Character (len=*), Intent (in) :: a, delim
Character (len=*), Intent (in), Optional :: pos
Character (len=*), Intent (out) :: b1, b2
Character (len=*), Intent (out), Optional :: b3, b4, b5, b6, b7, b8
Logical :: b
End Function
이 모호성을 해결할 수있는 방법에 대한 제안이 있으십니까? – Zeus
인터페이스에 두 개의 함수를 넣지 마십시오 (완료했다고 가정). 문맥에 따라 적절한 것을 호출하십시오. – bdforbes