diff options
author | Alex Beregszaszi <alex@rtfs.hu> | 2017-02-03 07:45:00 +0800 |
---|---|---|
committer | Alex Beregszaszi <alex@rtfs.hu> | 2017-02-03 09:52:18 +0800 |
commit | 9f9807f95dcf3bed2055e4612bc2ef2bfa2c0c71 (patch) | |
tree | 3e2d1e21221334de7893db935ae057d1c6ccd6bf /docs/miscellaneous.rst | |
parent | ab54cd100ec11e82f6e7c3405356fbc48fd2ed8c (diff) | |
download | dexon-solidity-9f9807f95dcf3bed2055e4612bc2ef2bfa2c0c71.tar.gz dexon-solidity-9f9807f95dcf3bed2055e4612bc2ef2bfa2c0c71.tar.zst dexon-solidity-9f9807f95dcf3bed2055e4612bc2ef2bfa2c0c71.zip |
Remove obsolete esoteric features section
Diffstat (limited to 'docs/miscellaneous.rst')
-rw-r--r-- | docs/miscellaneous.rst | 25 |
1 files changed, 0 insertions, 25 deletions
diff --git a/docs/miscellaneous.rst b/docs/miscellaneous.rst index c5a0262f..cc40d6a7 100644 --- a/docs/miscellaneous.rst +++ b/docs/miscellaneous.rst @@ -137,31 +137,6 @@ Different types have different rules for cleaning up invalid values: | | |will be thrown | +---------------+---------------+-------------------+ - -***************** -Esoteric Features -***************** - -There are some types in Solidity's type system that have no counterpart in the syntax. One of these types are the types of functions. But still, using ``var`` it is possible to have local variables of these types:: - - contract FunctionSelector { - function select(bool useB, uint x) returns (uint z) { - var f = a; - if (useB) f = b; - return f(x); - } - - function a(uint x) returns (uint z) { - return x * x; - } - - function b(uint x) returns (uint z) { - return 2 * x; - } - } - -Calling ``select(false, x)`` will compute ``x * x`` and ``select(true, x)`` will compute ``2 * x``. - .. index:: optimizer, common subexpression elimination, constant propagation ************************* |