mirror of
				https://github.com/ethereum/solidity
				synced 2023-10-03 13:03:40 +00:00 
			
		
		
		
	Merge pull request #5364 from ethereum/chriseth-patch-5
Add note about changing the storage layout.
This commit is contained in:
		
						commit
						60b44b1101
					
				| @ -32,6 +32,14 @@ Statically-sized variables (everything except mapping and dynamically-sized arra | ||||
|     ``uint128, uint256, uint128``, as the former will only take up two slots of storage whereas the | ||||
|     latter will take up three. | ||||
|   | ||||
|  .. note:: | ||||
|      The layout of state variables in storage is considered to be part of the external interface | ||||
|      of Solidity due to the fact that storage pointers can be passed to libraries. This means that | ||||
|      any change to the rules outlined in this section is considered a breaking change | ||||
|      of the language and due to its critical nature should be considered very carefully before | ||||
|      being executed. | ||||
|       | ||||
| 
 | ||||
| The elements of structs and arrays are stored after each other, just as if they were given explicitly. | ||||
| 
 | ||||
| Mappings and Dynamic Arrays | ||||
|  | ||||
		Loading…
	
		Reference in New Issue
	
	Block a user