Determines if a passed exit_code
instance is identical
to this instance.
We could imagine providing an operator(==) overload that makes use of this but this may not be well supported by all compilers currently.
Type | Intent | Optional | Attributes | Name | ||
---|---|---|---|---|---|---|
class(exit_code), | intent(in) | :: | self | |||
type(exit_code), | intent(in) | :: | other |
logical function is_identical(self, other)
implicit none
class(exit_code), intent(in) :: self
type(exit_code), intent(in) :: other
is_identical = (self%code == other%code)
is_identical = is_identical .and. (self%message == other%message)
end function is_identical