I guess I'm especially puzzled since
struct File {
test @0 :List(UInt64);
}
isn't a problem.
On Thursday, April 30, 2020 at 3:04:14 PM UTC-7, Samuel Ainsworth wrote:
>
> Following the schema introduction (https://capnproto.org/language.html),
> I have something like the following:
>
> struct Map(Key, Value) {
> entries @0 :List(Entry);
> struct Entry {
> key @0 :Key;
> value @1 :Value;
> }
> }
>
>
> struct Directory {
> contents @0 :Map(UInt64, UInt64);
> }
>
>
> But capnproto isn't too happy about this:
>
> src/newworld/filetree.capnp:51:23-29: error: Sorry, only pointer types can
> be used as generic parameters.
>
> I understand what this is saying, but I'm a bit puzzled as to why this
> constraint exists... Why are only pointer types allowed as the
> instantiations of generic parameters?
>
> Thanks,
> Samuel
>
--
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 [email protected].
To view this discussion on the web visit
https://groups.google.com/d/msgid/capnproto/12a0d68a-b622-4ff1-b4a2-cb553238a8cd%40googlegroups.com.