-
Notifications
You must be signed in to change notification settings - Fork 84
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Explain that no struct can be created as transaction input other than some exceptions #91
Explain that no struct can be created as transaction input other than some exceptions #91
Conversation
… some exceptions.
- std::string::String | ||
- vector of pure types | ||
- Option of pure types | ||
- ID, a special type that refers to a unique identifier of an object |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Ditto, not a special type, defined in sui::object::ID
. Link one of the object chapters.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
object/object-model seems more appropriate as it refers to the UID.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
After all, I linked storage/uid-and-id
. I also referred to object/object-model
as "See also".
a49b910
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Love the changes with small note on ID->UID
- [`std::ascii::String`](../move-basics/string.html#ascii-strings), ASCII strings. | ||
- [`vector<T>`](../move-basics/vector.html), where `T` is a pure type. | ||
- [`std::option::Option<T>`](../move-basics/option.html), where `T` is a pure type. | ||
- [`std::object::ID`](../storage/uid-and-id.html), takes part in the Unique IDentifier (UID) of an object. See also [What is an Object](../object/object-model.html). |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I wouldn't mention anything UID here. ID is just a type which typically points to an object, though it's not a requirement.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@nikos-terzo LGTM! Thank you for doing this and for carrying out the edit process! |
I happened to waste some time in my move learning process trying to see whether structs with
copy
ability could be created from the client side and passed into MoveVM. A colleague did the same thing too. Maybe we need to make this explicit.I am not sure whether the format and places I used are the best.