diff options
author | holgerd77 <Holger.Drewes@googlemail.com> | 2016-02-19 18:30:00 +0800 |
---|---|---|
committer | holgerd77 <Holger.Drewes@googlemail.com> | 2016-02-19 18:30:00 +0800 |
commit | acee4b7040b5b7991b540ecf59a9dd5d7fc1fb5a (patch) | |
tree | 5735ecf983447178b9b2b2d1b1a9ec553f9b6fb2 | |
parent | 6640e9e91897e4b030d1fea1a3c7a227c902bd26 (diff) | |
download | dexon-solidity-acee4b7040b5b7991b540ecf59a9dd5d7fc1fb5a.tar.gz dexon-solidity-acee4b7040b5b7991b540ecf59a9dd5d7fc1fb5a.tar.zst dexon-solidity-acee4b7040b5b7991b540ecf59a9dd5d7fc1fb5a.zip |
Added in-depth links for further reading to the state variable, function and function modifier overview in the structure section
-rw-r--r-- | docs/control-structures.rst | 2 | ||||
-rw-r--r-- | docs/structure-of-a-contract.rst | 10 | ||||
-rw-r--r-- | docs/types.rst | 2 |
3 files changed, 14 insertions, 0 deletions
diff --git a/docs/control-structures.rst b/docs/control-structures.rst index 4becfcf1..989e14ba 100644 --- a/docs/control-structures.rst +++ b/docs/control-structures.rst @@ -20,6 +20,8 @@ there is in C and JavaScript, so `if (1) { ... }` is *not* valid Solidity. .. index:: ! function;call, function;internal, function;external +.. _function-calls: + Function Calls ============== diff --git a/docs/structure-of-a-contract.rst b/docs/structure-of-a-contract.rst index 2916c3f1..7b3dca60 100644 --- a/docs/structure-of-a-contract.rst +++ b/docs/structure-of-a-contract.rst @@ -25,6 +25,10 @@ State variables are values which are permanently stored in contract storage. // ... } +See the :ref:`types` section for valid state variable types and +:ref:`visibility-and-accessors` for possible choices for +visability. + .. _functions: Functions @@ -40,6 +44,10 @@ Functions are the executable units of code within a contract. } } +Functions can be called internally or externally (:ref:`function-calls`) +and have different levels of visibility (:ref:`visibility-and-accessors`) +towards other contracts. + .. _function-modifiers: Function Modifiers @@ -62,6 +70,8 @@ Function modifiers can be used to amend the semantics of functions in a declarat } } +See :ref:`modifiers` in the section on contracts for a more in-depth explanation. + .. _events: Events diff --git a/docs/types.rst b/docs/types.rst index 27ab82ff..a9cd9cfd 100644 --- a/docs/types.rst +++ b/docs/types.rst @@ -1,5 +1,7 @@ .. index:: type +.. _types: + ***** Types ***** |