Re: [capnproto] List of List using DynamicList

2023-01-25 Thread 'Kenton Varda' via Cap'n Proto
On Tue, Jan 24, 2023 at 6:11 PM Carlo Contavalli wrote: > Hello, > > On Tue, Jan 24, 2023 at 1:10 PM Kenton Varda > wrote: > >> You mean SchemaLoader::getType(), right? >> > > Correct. > > >> case schema::Type::LIST: >> return ListSchema::of(getType(proto.getList().getElementType(), scope)); >>

Re: [capnproto] List of List using DynamicList

2023-01-24 Thread Carlo Contavalli
Hello, On Tue, Jan 24, 2023 at 1:10 PM Kenton Varda wrote: > You mean SchemaLoader::getType(), right? > Correct. > case schema::Type::LIST: > return ListSchema::of(getType(proto.getList().getElementType(), scope)); > > So the returned type should not lose the fact that the type represents a >

Re: [capnproto] List of List using DynamicList

2023-01-24 Thread 'Kenton Varda' via Cap'n Proto
Hi Carlo, It seems like you've figured out what everything represents and than you need to use SchemaLoader here. I'm not sure I understand the problem you're getting at. On Sat, Jan 21, 2023 at 11:30 AM Carlo Contavalli wrote: > I see I can use SchemaLoader.get() to get a capnp::Type out of a