From d03b52519adf31180261ee9edfe24a1c4fe71bb6 Mon Sep 17 00:00:00 2001 From: Chris Ward Date: Wed, 12 Dec 2018 14:57:47 +0100 Subject: [PATCH] Remove FAQ item that covers array literals --- docs/frequently-asked-questions.rst | 25 ------------------------- 1 file changed, 25 deletions(-) diff --git a/docs/frequently-asked-questions.rst b/docs/frequently-asked-questions.rst index f3c5b1f79..b00723484 100644 --- a/docs/frequently-asked-questions.rst +++ b/docs/frequently-asked-questions.rst @@ -45,31 +45,6 @@ Enums are not supported by the ABI, they are just supported by Solidity. You have to do the mapping yourself for now, we might provide some help later. -Can state variables be initialized in-line? -=========================================== - -Yes, this is possible for all types (even for structs). However, for arrays it -should be noted that you must declare them as static memory arrays. - -Examples:: - - pragma solidity >=0.4.0 <0.6.0; - - contract C { - struct S { - uint a; - uint b; - } - - S public x = S(1, 2); - string name = "Ada"; - string[4] adaArr = ["This", "is", "an", "array"]; - } - - contract D { - C c = new C(); - } - How do structs work? ====================