...by Daniel Szego
"Simplicity is the ultimate sophistication."
Leonardo da Vinci

Sunday, February 11, 2018

Solidity and Truffle Tips and Tricks - function pointers

There is a possibility to use function pointers in solidity. Practically you can define a function and set a variable defining the type of the variable as var:

contract TetFunctionPointer{

  function myFunction (uint256 input){

  function testFunction(){
      var fvPointer = this.myFunction;