Skip to content

Commit

Permalink
Remove Value struct in favor of AnyPointer (for simplicity).
Browse files Browse the repository at this point in the history
  • Loading branch information
lthibault committed Jul 7, 2023
1 parent 9613372 commit 29af282
Show file tree
Hide file tree
Showing 3 changed files with 156 additions and 568 deletions.
24 changes: 1 addition & 23 deletions api/anchor.capnp
Original file line number Diff line number Diff line change
Expand Up @@ -39,29 +39,7 @@ interface Anchor {
name @1 :Text;
}

struct Value {
# Value is a union type that can be assigned to an Anchor.

union {
null @0 :Void;
# Null value indicates that the Anchor is empty, i.e. it
# contains no value.

chan :union {
# Chan values contain some sort of channel. The union is
# used as a type hint on the receiving side.

closer @1 :import "channel.capnp".Closer;
sender @2 :import "channel.capnp".Sender;
recver @3 :import "channel.capnp".Recver;
sendCloser @4 :import "channel.capnp".SendCloser;
chan @5 :import "channel.capnp".Chan;
}

# proc :group { # TODO
# }
}
}
using Value = AnyPointer;

interface Loader {
# Loader is a read-only interface to a value. It grants the
Expand Down
Loading

0 comments on commit 29af282

Please sign in to comment.