You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Currently, the compiler automatically determines whether to serialize a nested struct inlined in the same cell or as a reference, based on whether it fits. This proposal introduces a way for developers to explicitly specify the desired serialization mode.
c will always be serialized in the same cell as A, while
d will always be serialized as a reference, regardless of their sizes.
If the specified serialization mode is not feasible (e.g., a large struct is forced as inline but cannot fit in the cell), the compiler will throw a compilation error.
The text was updated successfully, but these errors were encountered:
Currently, the compiler automatically determines whether to serialize a nested struct inlined in the same cell or as a reference, based on whether it fits. This proposal introduces a way for developers to explicitly specify the desired serialization mode.
For example:
With this feature:
c
will always be serialized in the same cell asA
, whiled
will always be serialized as a reference, regardless of their sizes.If the specified serialization mode is not feasible (e.g., a large struct is forced as
inline
but cannot fit in the cell), the compiler will throw a compilation error.The text was updated successfully, but these errors were encountered: