mirror of
https://github.com/ethereum/solidity
synced 2023-10-03 13:03:40 +00:00
Explain accessors on arrays
This commit is contained in:
parent
448f1fba53
commit
d4ad814bf3
@ -371,6 +371,9 @@ So ``bytes`` should always be preferred over ``byte[]`` because it is cheaper.
|
|||||||
that you are accessing the low-level bytes of the UTF-8 representation,
|
that you are accessing the low-level bytes of the UTF-8 representation,
|
||||||
and not the individual characters!
|
and not the individual characters!
|
||||||
|
|
||||||
|
It is possible to mark arrays ``public`` and have Solidity create an accessor.
|
||||||
|
The numeric index will become a required parameter for the accessor.
|
||||||
|
|
||||||
.. index:: ! array;allocating, new
|
.. index:: ! array;allocating, new
|
||||||
|
|
||||||
Allocating Memory Arrays
|
Allocating Memory Arrays
|
||||||
|
Loading…
Reference in New Issue
Block a user