From: Dave Thomas Date: 2003-02-02T02:04:31+09:00 Subject: Re: Coercion of variables Brian Candler wrote: > (Practical example: I have defined a subclass of the TCPSocket object. > TCPServer#accept returns an object of class TCPSocket. I want to convert > this object into my own subclass) Two techniques for doing this my be using 'extend' to add functionality to the specific object, or to have your own class delegate to the TCPSocket object. Both are straightforward. Dave