mirror of
				https://github.com/ethereum/solidity
				synced 2023-10-03 13:03:40 +00:00 
			
		
		
		
	Clarify access of free functions.
This commit is contained in:
		
							parent
							
								
									44e048a649
								
							
						
					
					
						commit
						377f9233ae
					
				| @ -33,6 +33,13 @@ that call them, similar to internal library functions. | ||||
|         } | ||||
|     } | ||||
| 
 | ||||
| .. note:: | ||||
|     Functions defined outside a contract are still always executed | ||||
|     in the context of a contract. They still have access to the variable ``this``, | ||||
|     can call other contracts, send them Ether and destroy the contract that called them, | ||||
|     among other things. The main difference to functions defined inside a contract | ||||
|     is that free functions do not have direct access to storage variables and functions | ||||
|     not in their scope. | ||||
| 
 | ||||
| .. _function-parameters-return-variables: | ||||
| 
 | ||||
|  | ||||
		Loading…
	
		Reference in New Issue
	
	Block a user