On Wed, 22 Oct 2008 22:39:10 +0400, bearophile <[email protected]> wrote:[...]You can use the following short-cut to avoid double casting: if (auto foo = cast(Foo)obj) { ... } else if (auto bar = cast(Bar)bar) { ... } else { ... }
doesn't work with extern(C++) classes see https://forum.dlang.org/post/[email protected]
