mirror of
https://github.com/ethereum/solidity
synced 2023-10-03 13:03:40 +00:00
Merge pull request #4778 from ethereum/dynamicArraysDocs
Change note about returning dynamic arrays.
This commit is contained in:
commit
b4e33ec25c
@ -725,14 +725,11 @@ Members
|
|||||||
.. warning::
|
.. warning::
|
||||||
It is not yet possible to use arrays of arrays in external functions.
|
It is not yet possible to use arrays of arrays in external functions.
|
||||||
|
|
||||||
.. warning::
|
.. note::
|
||||||
Due to limitations of the EVM, it is not possible to return
|
In EVM versions before Byzantium, it was not possible to access
|
||||||
dynamic content from external function calls. The function ``f`` in
|
dynamic arrays return from function calls. If you call functions
|
||||||
``contract C { function f() returns (uint[]) { ... } }`` will return
|
that return dynamic arrays, make sure to use an EVM that is set to
|
||||||
something if called from web3.js, but not if called from Solidity.
|
Byzantium mode.
|
||||||
|
|
||||||
The only workaround for now is to use large statically-sized arrays.
|
|
||||||
|
|
||||||
|
|
||||||
::
|
::
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user