Hi,
Sorry for the newbie question.

I've read the following thread and this is related to the same kind of 
question.
https://groups.google.com/g/capnproto/c/XLo5RPLpVBg/m/LI_sGi72AgAJ

With following schema example:
interface Abstract {} 
interface ConcreteA extends(Abstract) {} 
interface ConcreteB extends(Abstract) {} 
interface Object { 
  getAbstracts @0 () -> (abstracts :List(Abstract)); 
}

When implementing getAbstracts on the server side, only ConcreteA or 
ConcreteB objects are constructed and returned.
My question is: on the client side, what is the best practice for 
determining the Abstract object concrete type and casting it to ConcreteA 
or ConcreteB. Something equivalent to C++ dynamic_cast.

Thanks !
Christophe Alexandre

-- 
You received this message because you are subscribed to the Google Groups 
"Cap'n Proto" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to capnproto+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/capnproto/1613eaaf-6025-4eb0-90c3-a7f4a98a2e21n%40googlegroups.com.

Reply via email to