Explain accessors on arrays

This commit is contained in:
Alex Beregszaszi 2016-10-19 14:13:48 +01:00
parent 448f1fba53
commit d4ad814bf3

View File

@ -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,
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
Allocating Memory Arrays