Skip to content

Commit

Permalink
Reword External Function Calls paragraph in docs
Browse files Browse the repository at this point in the history
Reword External Function Calls opening paragraph to improve clarity
  • Loading branch information
istareatscreens committed Sep 14, 2021
1 parent dea1b9e commit d1465dd
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions docs/control-structures.rst
Original file line number Diff line number Diff line change
Expand Up @@ -65,9 +65,10 @@ uses up at least one stack slot and there are only 1024 slots available.
External Function Calls
-----------------------

The expressions ``this.g(8);`` and ``c.g(2);`` (where ``c`` is a contract
instance) are also valid function calls, but this time, the function
will be called "externally", via a message call and not directly via jumps.
Functions can also be called using the ``this.g(8);`` and ``c.g(2);`` notation, where
``c`` is a contract instance and ``g`` is a function belonging to ``c``.
Calling the function ``g`` via either way results in it being called "externally", using a
message call and not directly via jumps.
Please note that function calls on ``this`` cannot be used in the constructor,
as the actual contract has not been created yet.

Expand Down

0 comments on commit d1465dd

Please sign in to comment.