Operator =.
| Type | Intent | Optional | Attributes | Name | ||
|---|---|---|---|---|---|---|
| class(file_object), | intent(inout) | :: | lhs | Left hand side. |
||
| type(file_object), | intent(in) | :: | rhs | Right hand side. |
pure subroutine file_assign_file(lhs, rhs)
!< Operator `=`.
class(file_object), intent(inout) :: lhs !< Left hand side.
type(file_object), intent(in) :: rhs !< Right hand side.
lhs%error = rhs%error
if (allocated(rhs%file_name)) lhs%file_name = rhs%file_name
lhs%file_unit = rhs%file_unit
lhs%is_initialized = rhs%is_initialized
lhs%is_connected = rhs%is_connected
endsubroutine file_assign_file