Skip to content

Commit

Permalink
Remove mention that shared structs can't have private fields
Browse files Browse the repository at this point in the history
  • Loading branch information
syg committed Dec 17, 2024
1 parent 7205cea commit 8fca66e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -84,7 +84,7 @@ Shared structs are structs with even more restricted behavior, so as to make the
Shared structs, in addition to the properties listed for structs above, have the following additional properties:
- They can only extend other shared structs.
- They have a `null` prototype.
- They cannot contain instance methods or instance private names.
- They cannot contain instance methods.
- Their instances can be communicated to other agents without copying.
- Their fields can only reference primitives or other shared structs. That is, they cannot point to unshared values.
- They cannot be frozen, because that would change their shape, which must be immutable to be amenable for sharing.
Expand Down

0 comments on commit 8fca66e

Please sign in to comment.