• C (unregistered) in reply to dubwai
    dubwai:
    Anonymous:
    Perhaps, perhaps, this was done in anticipation of an "impl" design. In the future, "getSelf" could be overriden to return a different object other than 'this'. (read: a class that derives from DocumentBO that provides the real implementation).  This could be a rather ingenious method of data hiding.  Kind of irrelevant in languages such as C# or Java, but possible nonetheless. Not that I think that's too likely, just a possibility.
    We've already discussed this possibility.
    But in discussing it you failed to address the (quite valid IMO of C/C++/C# coder) issue raised by "bat": the code won't compile, trying to create overridden virtual functions that differ only in their return types!

Leave a comment on “Reinvent This”

Log In or post as a guest

Replying to comment #:

« Return to Article