mirror of
https://github.com/ethereum/solidity
synced 2023-10-03 13:03:40 +00:00
Mention that callcode is deprecated
This commit is contained in:
parent
15689506c5
commit
04582dd2cb
@ -135,6 +135,9 @@ The ``.gas()`` option is available on all three methods, while the ``.value()``
|
|||||||
All contracts inherit the members of address, so it is possible to query the balance of the
|
All contracts inherit the members of address, so it is possible to query the balance of the
|
||||||
current contract using ``this.balance``.
|
current contract using ``this.balance``.
|
||||||
|
|
||||||
|
.. note::
|
||||||
|
The use of ``callcode`` is discouraged and will be removed in the future.
|
||||||
|
|
||||||
.. warning::
|
.. warning::
|
||||||
All these functions are low-level functions and should be used with care.
|
All these functions are low-level functions and should be used with care.
|
||||||
Specifically, any unknown contract might be malicious and if you call it, you
|
Specifically, any unknown contract might be malicious and if you call it, you
|
||||||
@ -436,7 +439,8 @@ Another example that uses external function types::
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
Note that lambda or inline functions are planned but not yet supported.
|
.. note::
|
||||||
|
Lambda or inline functions are planned but not yet supported.
|
||||||
|
|
||||||
.. index:: ! type;reference, ! reference type, storage, memory, location, array, struct
|
.. index:: ! type;reference, ! reference type, storage, memory, location, array, struct
|
||||||
|
|
||||||
|
@ -70,6 +70,7 @@ Block and Transaction Properties
|
|||||||
``msg.value`` can change for every **external** function call.
|
``msg.value`` can change for every **external** function call.
|
||||||
This includes calls to library functions.
|
This includes calls to library functions.
|
||||||
|
|
||||||
|
.. note::
|
||||||
If you want to implement access restrictions in library functions using
|
If you want to implement access restrictions in library functions using
|
||||||
``msg.sender``, you have to manually supply the value of
|
``msg.sender``, you have to manually supply the value of
|
||||||
``msg.sender`` as an argument.
|
``msg.sender`` as an argument.
|
||||||
@ -157,6 +158,9 @@ For more information, see the section on :ref:`address`.
|
|||||||
to make safe Ether transfers, always check the return value of ``send``, use ``transfer`` or even better:
|
to make safe Ether transfers, always check the return value of ``send``, use ``transfer`` or even better:
|
||||||
Use a pattern where the recipient withdraws the money.
|
Use a pattern where the recipient withdraws the money.
|
||||||
|
|
||||||
|
.. note::
|
||||||
|
The use of ``callcode`` is discouraged and will be removed in the future.
|
||||||
|
|
||||||
.. index:: this, selfdestruct
|
.. index:: this, selfdestruct
|
||||||
|
|
||||||
Contract Related
|
Contract Related
|
||||||
|
Loading…
Reference in New Issue
Block a user