Hi Kenton / all, 

I'm trying to do something akin to:

struct SomeGeneric(T) {
    data @0 :List(T);
    
    // other fields...
}

Of course, I run into the fact that List(AnyPointer) is not supported. 
However, I don't want _any_ pointer. I'd be fine with only supporting types 
that List supports. Is there no way to annotate / constrain the type T 
above? Other threads in the past have suggested making an intermediate 
struct at the cost of extra pointer indirection, but I'm pretty sure I only 
ever want a struct in the T position. Is this possible?

Cheers,

-- 
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/10c8a6c2-0450-4ed5-8a1c-3c29fb8d8b6an%40googlegroups.com.

Reply via email to