aboutsummaryrefslogtreecommitdiffstats
path: root/docs
diff options
context:
space:
mode:
authorChris Ward <chriswhward@gmail.com>2018-12-12 21:57:47 +0800
committerChris Ward <chriswhward@gmail.com>2018-12-12 21:57:47 +0800
commitd03b52519adf31180261ee9edfe24a1c4fe71bb6 (patch)
tree7c5036ff1b2b5e5a90befae5001ce5fdce5796f3 /docs
parent85291bcb2d0e92c8d515887a00174d46f974500d (diff)
downloaddexon-solidity-d03b52519adf31180261ee9edfe24a1c4fe71bb6.tar.gz
dexon-solidity-d03b52519adf31180261ee9edfe24a1c4fe71bb6.tar.zst
dexon-solidity-d03b52519adf31180261ee9edfe24a1c4fe71bb6.zip
Remove FAQ item that covers array literals
Diffstat (limited to 'docs')
-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 f3c5b1f7..b0072348 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?
====================