mirror of
https://github.com/ethereum/solidity
synced 2023-10-03 13:03:40 +00:00
Fix docs. (#916)
This commit is contained in:
parent
c499470b1c
commit
a63f94e042
@ -87,7 +87,10 @@ parentheses at the end perform the actual call.
|
|||||||
Named Calls and Anonymous Function Parameters
|
Named Calls and Anonymous Function Parameters
|
||||||
---------------------------------------------
|
---------------------------------------------
|
||||||
|
|
||||||
Function call arguments can also be given by name, in any order.
|
Function call arguments can also be given by name, in any order,
|
||||||
|
if they are enclosed in ``{ }`` as can be seen in the following
|
||||||
|
example. The argument list has to coincide by name with the list of
|
||||||
|
parameters from the function declaration, but can be in arbitrary order.
|
||||||
|
|
||||||
::
|
::
|
||||||
|
|
||||||
@ -99,9 +102,12 @@ Function call arguments can also be given by name, in any order.
|
|||||||
f({value: 2, key: 3});
|
f({value: 2, key: 3});
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
Note that when calling the function, the argument list must match by name every parameter from the function declaration - though in an arbitrary order.
|
|
||||||
|
|
||||||
Also, the names of unused parameters (especially return parameters) can be omitted.
|
Omitted Function Parameter Names
|
||||||
|
--------------------------------
|
||||||
|
|
||||||
|
The names of unused parameters (especially return parameters) can be omitted.
|
||||||
|
Those names will still be present on the stack, but they are inaccessible.
|
||||||
|
|
||||||
::
|
::
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user