Skip to content

Types- all differences #5

@ghost

Description

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

  2. 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

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

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

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

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

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

  8. 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

  1. 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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions