go-capnp icon indicating copy to clipboard operation
go-capnp copied to clipboard

capnpc-go: use more specific pointers for AnyStruct, AnyList, Capability

Open zombiezen opened this issue 7 years ago • 4 comments

Cap'n Proto schemas can specify AnyStruct, AnyList, or Capability to limit what kind of pointers a field can have. In the generated code, these are all given capnp.Ptr types. The code generator should distinguish these and use the appropriate type.

zombiezen avatar Aug 25 '17 23:08 zombiezen

@lthibault has already done this for capabilities, and I think was planning on doing the rest, so I'm going to assign him.

zenhack avatar May 08 '22 04:05 zenhack

I guess technically said patch hasn't landed (#232)

zenhack avatar May 08 '22 05:05 zenhack

@zenhack Should I just go ahead and merge #232 since it doesn't seem to actually be introducing the race condition in the tests?

lthibault avatar May 09 '22 15:05 lthibault

I went ahead and merged it.

zenhack avatar May 09 '22 19:05 zenhack