> On Apr 30, 2015, at 12:09 PM, Joshua Cranmer 🐧 <pidgeo...@gmail.com> wrote:
> 
> do_QueryInterface is the equivalent of a type-checked downcast, e.g. 
> (ClassName)foo in Java.  (Regular C++ downcasts are not dynamically 
> type-checked).

do_QueryInterface is, in other words, essentially equivalent to dynamic_cast in 
C++, except that because it’s implemented manually people can do strange things 
if they want to. They almost never do, though, so dynamic_cast is a pretty good 
mental model.

- Seth
_______________________________________________
dev-platform mailing list
dev-platform@lists.mozilla.org
https://lists.mozilla.org/listinfo/dev-platform

Reply via email to