in reply to Re^3: Designing multiple related modules
in thread Designing multiple related modules

I would expect the constructor of a class to return ... erm ... an object of that same class

Yes...that's kind of obvious but until you mentioned it wasn't front of mind.

Having the constructor return the same class or a subclass of it has been added to my mental list of things to make sure of when creating a new module.

  • Comment on Re^4: Designing multiple related modules