#21 add Portable::recycle

open
nobody
None
5
2007-05-09
2007-05-09
Paul Fitzpatrick
No

When using BufferedPorts, people expect to get "clean" objects when they call BufferedPort::prepare() rather than the reused objects they actually do get most of the time. This could be solved if prepare() could reset the object. This would require a virtual method in Portable (or more specifically PortWriter) that could be overridden to do the necessary reset.

Discussion