How to raise a warning if the close() function of a user-defined class isn't called?

Printable View