Ah okay, so the way around this is to just duplicate contracts everywhere.
i.e.
contracts/command/default.nix or command contract looks like this:
...
@0xdfa17455eb3bee21;
struct Tuple {
first @0 : Text;
second @1 : Text;
}
struct Command {
name @0 : Text;
singles @1 : List(Text);
kvs @2 : List(Tuple);
}
...
and contracts/list/command/default.nix or list_command contract looks like this:
@0xf61e7fcd2b18d862;
struct Tuple {
first @0 : Text;
second @1 : Text;
}
struct Command {
name @0 : Text;
singles @1 : List(Text);
kvs @2 : List(Tuple);
}
struct ListCommand {
commands @0 :List(Command);
}
I'll keep duplicating till this type aliasing feature lands.
Thanks David.
--
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].
Visit this group at https://groups.google.com/group/capnproto.