From: Steve Hart Date: 2003-04-20T09:20:32+09:00 Subject: Re: [Q] "dynamic_cast" with Ruby and Swig Tobias Peters wrote: > Lyle Johnson wrote: >> Yura wrote: >>> Can anyone tell me if this is the best way to do "dynamic_cast" with >>> Swig-wrapped Ruby extension module: > [...] >> >> This is probably more clear: >> >> %extend Base { >> Derived *toDerived() { return dynamic_cast(self); } >> } > > Any Chance that swig could perform a cast to the most derived type > automatically? > > Tobias Now that's what I call service!!. Just came on to ask this same question. and would agree with Tobias that it would be great id Swig could generate these automatically