
23 Mar
2005
23 Mar
'05
11:15 p.m.
On Wed, 23 Mar 2005 16:42:39 -0600 "Michael Goldshteyn" <mgoldshteyn@earthlink.net> wrote:
In any case, I now understand what it is doing. Perhaps this difference from dynamic cast should be documented more explicitly.
It is actually a little more sneaky than that. However, until changes are made (I believe some ref overloads are planned for 1.33), casting a ptr-to-any always returns a ptr-to-the-real-type and casting a ref-to-any always returns a COPY of the real-type, or throws an exception if the conversion can not be done.