top | item 39864872 (no title) atilaneves | 1 year ago Wouldn't the instance state here be "was constructed"? That is: you should always be able to call `Read` because the constructor opened the file, and you shouldn't have to call `Close` anyway because the destructor did. discuss order hn newest tonyhb|1 year ago I suppose it depends on the API. Some languages require grabbing a handle and calling open. Either way, theory is the same!
tonyhb|1 year ago I suppose it depends on the API. Some languages require grabbing a handle and calling open. Either way, theory is the same!
tonyhb|1 year ago