arrayio / array-io-solidity

Docs for Array.IO Solidity implementation
0 stars 0 forks source link

Types- all differences #5

Open ghost opened 6 years ago

ghost commented 6 years ago

Types (https://github.com/arrayio/array-io-solidity/blob/master/types.rst#types)

A: we don't support all bellow (1-10)

  1. Fixed Point Numbers (fixed point numbers until 'Address' section) https://github.com/arrayio/array-io-solidity/blob/master/types.rst#fixed-point-numbers
  1. Members of addresses (first Warning and a second Note in the section) https://github.com/arrayio/array-io-solidity/blob/master/types.rst#members-of-addresses

  2. Fixed-sized byte arrays https://github.com/arrayio/array-io-solidity/blob/master/types.rst#fixed-size-byte-arrays

  3. Dynamically-sized byte array https://github.com/arrayio/array-io-solidity/blob/master/types.rst#dynamically-sized-byte-array

  4. Address literals https://github.com/arrayio/array-io-solidity/blob/master/types.rst#address-literals

  5. String literals https://github.com/arrayio/array-io-solidity/blob/master/types.rst#string-literals

  6. Hexadecimal literals https://github.com/arrayio/array-io-solidity/blob/master/types.rst#hexadecimal-literals

  7. Enums https://github.com/arrayio/array-io-solidity/blob/master/types.rst#enums

In Function types: https://github.com/arrayio/array-io-solidity/blob/master/types.rst#function-types

  1. Sentence: If external function types are used outside of the context of Solidity, they are treated as the function type, which encodes the address followed by the function identifier together in a single bytes24 type.

  2. code: event NewRequest(uint); and emit NewRequest(requests.length - 1)

  3. In Operators Involving LValues - delete subsection

    Data location https://github.com/arrayio/array-io-solidity/blob/master/types.rst#data-location

  4. paragraph: There is also a third data location, calldata, which is a non-modifiable, non-persistent area where function arguments are stored. Function parameters (not return parameters) of external functions are forced to calldata and behave mostly like memory. A: in Array, calldata is ROM

Members (https://github.com/arrayio/array-io-solidity/blob/master/types.rst#members)

  1. code in Push subsection: m_pairsOfFlags; delete m_aLotOfIntegers; bytes memory b = new bytes(200); A: doesn't exist