aboutsummaryrefslogtreecommitdiffstats
path: root/docs/frequently-asked-questions.rst
diff options
context:
space:
mode:
authorchriseth <chris@ethereum.org>2018-12-13 22:56:21 +0800
committerGitHub <noreply@github.com>2018-12-13 22:56:21 +0800
commit1c4caaa0a20336509802966a1663752cf11697f2 (patch)
treee39f6dedbd1b1b6a431734d1787932b84efc5e93 /docs/frequently-asked-questions.rst
parentef95a1ab53c576dbbc2f7e73aef7584c210fecfa (diff)
parentd03b52519adf31180261ee9edfe24a1c4fe71bb6 (diff)
downloaddexon-solidity-1c4caaa0a20336509802966a1663752cf11697f2.tar.gz
dexon-solidity-1c4caaa0a20336509802966a1663752cf11697f2.tar.zst
dexon-solidity-1c4caaa0a20336509802966a1663752cf11697f2.zip
Merge pull request #5636 from ethereum/faq-array-literal
DOCS: Remove FAQ item that covers array literals
Diffstat (limited to 'docs/frequently-asked-questions.rst')
-rw-r--r--docs/frequently-asked-questions.rst25
1 files changed, 0 insertions, 25 deletions
diff --git a/docs/frequently-asked-questions.rst b/docs/frequently-asked-questions.rst
index a4ef3684..d263e0c6 100644
--- a/docs/frequently-asked-questions.rst
+++ b/docs/frequently-asked-questions.rst
@@ -16,31 +16,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?
====================