aboutsummaryrefslogtreecommitdiffstats
path: root/docs/types.rst
diff options
context:
space:
mode:
authorAlex Beregszaszi <alex@rtfs.hu>2016-10-19 21:13:48 +0800
committerAlex Beregszaszi <alex@rtfs.hu>2016-10-19 21:13:48 +0800
commitd4ad814bf31e3e5435b47d58b358c1ad21f16b9c (patch)
treeb5374625e0f2c8e8af7571e13c07994904cf87a7 /docs/types.rst
parent448f1fba536e9a120968ac146e1aae9a63a1c564 (diff)
downloaddexon-solidity-d4ad814bf31e3e5435b47d58b358c1ad21f16b9c.tar.gz
dexon-solidity-d4ad814bf31e3e5435b47d58b358c1ad21f16b9c.tar.zst
dexon-solidity-d4ad814bf31e3e5435b47d58b358c1ad21f16b9c.zip
Explain accessors on arrays
Diffstat (limited to 'docs/types.rst')
-rw-r--r--docs/types.rst3
1 files changed, 3 insertions, 0 deletions
diff --git a/docs/types.rst b/docs/types.rst
index 959d4de3..e042a98c 100644
--- a/docs/types.rst
+++ b/docs/types.rst
@@ -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