From d4ad814bf31e3e5435b47d58b358c1ad21f16b9c Mon Sep 17 00:00:00 2001 From: Alex Beregszaszi Date: Wed, 19 Oct 2016 14:13:48 +0100 Subject: Explain accessors on arrays --- docs/types.rst | 3 +++ 1 file changed, 3 insertions(+) (limited to 'docs') 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 -- cgit v1.2.3