4 ms·
I use it for example to get a tcp stream. I then change it to a subclass, for example to a mailer stream. That way I don't need to tell the stream creating func
by lispm 11y ago
I use it for example to get a tcp stream. I then change it to a subclass, for example to a mailer stream. That way I don't need to tell the stream creating function which class it should use for the stream.
- jsnell 11y agoUm, but that's an example of change-class rather than redefining a class. I agree that changing the class of an instance is something you might do routinely in a production app.