Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Types- all differences #5

Open
ghost opened this issue Oct 8, 2018 · 0 comments
Open

Types- all differences #5

ghost opened this issue Oct 8, 2018 · 0 comments

Comments

@ghost
Copy link

ghost commented Oct 8, 2018

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
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

0 participants