Skip to content

Commit

Permalink
Remove "prior to Homestead"
Browse files Browse the repository at this point in the history
  • Loading branch information
pirapira committed Oct 13, 2016
1 parent 5e75cae commit 78399bc
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions docs/contracts.rst
Original file line number Diff line number Diff line change
Expand Up @@ -885,7 +885,6 @@ Libraries

Libraries are similar to contracts, but their purpose is that they are deployed
only once at a specific address and their code is reused using the ``DELEGATECALL``
(``CALLCODE`` until Homestead)
feature of the EVM. This means that if library functions are called, their code
is executed in the context of the calling contract, i.e. ``this`` points to the
calling contract, and especially the storage from the calling contract can be
Expand Down Expand Up @@ -976,8 +975,7 @@ are all compiled as calls (``DELEGATECALL``) to an external
contract/library. If you use libraries, take care that an
actual external function call is performed.
``msg.sender``, ``msg.value`` and ``this`` will retain their values
in this call, though (prior to Homestead, ``msg.sender`` and
``msg.value`` changed, though).
in this call, though.

The following example shows how to use memory types and
internal functions in libraries in order to implement
Expand Down Expand Up @@ -1079,7 +1077,7 @@ In both situations, all functions, even those where the
type of the first parameter does not match the type of
the object, are attached. The type is checked at the
point the function is called and function overload
resolution is performed.
resolution is performed at the compilation time.

The ``using A for B;`` directive is active for the current
scope, which is limited to a contract for now but will
Expand Down

0 comments on commit 78399bc

Please sign in to comment.