I suppose this will work in any context but it seems to require more programming effort :-(
In reply to Re^2: Inheritance and IO by casiano in thread Inheritance and IO by casiano