|
![](/i/fill.gif) |
Warp wrote:
> It's useful mostly if you have some way of casting back to the original
> type.
Exactly. In languages where everything comes from Object, they're usually
either dynamically typed or they have the equivalent of dynamic_cast<>.
Otherwise, it wouldn't really be useful. Handy when you want to do
something like "Print this array of objects with that string as the format
specifier" a la printf.
--
Darren New, San Diego CA, USA (PST)
Yes, we're traveling together,
but to different destinations.
Post a reply to this message
|
![](/i/fill.gif) |