I do not understand how one would export a type alias in Cap'n Proto.
The simplest example I can think of is a point cloud. Suppose we have a schema such as
struct Point {
x @0: Float32 = 0;
y @1: Float32 = 0;
}
and then I want to also export a list of those points as a fixed type:
struct Point {
x @0: Float32 = 0;
y @1: Float32 = 0;
}
using PointCloud = List(Point);
It seems to me (based on the generated code) that the PointCloud type is not exported as part of the schema. It seems that that PointCloud is only usable interally in the schema file.
How can I export this alias so that it is usable externally?
I stumbled across the roadmap, and there there is the statement:
So perhaps this is the answer to my question... It is simply not currently supported.