mirror of
https://github.com/ethereum/solidity
synced 2023-10-03 13:03:40 +00:00
Add v0.6.0 change notes for inline assembly opcode syntax changes.
This commit is contained in:
parent
37597f9e88
commit
f0f46a12af
@ -53,6 +53,8 @@ For most of the topics the compiler will provide suggestions.
|
|||||||
If the name contains a dot, its prefix up to the dot may not conflict with any declaration outside the inline
|
If the name contains a dot, its prefix up to the dot may not conflict with any declaration outside the inline
|
||||||
assembly block.
|
assembly block.
|
||||||
|
|
||||||
|
* In inline assembly, opcodes that do not take arguments are now represented as "built-in functions" instead of standalone identifiers. So ``gas`` is now ``gas()``.
|
||||||
|
|
||||||
* State variable shadowing is now disallowed. A derived contract can only
|
* State variable shadowing is now disallowed. A derived contract can only
|
||||||
declare a state variable ``x``, if there is no visible state variable with
|
declare a state variable ``x``, if there is no visible state variable with
|
||||||
the same name in any of its bases.
|
the same name in any of its bases.
|
||||||
@ -174,3 +176,6 @@ This section gives detailed instructions on how to update prior code for every b
|
|||||||
``override`` to every overriding function. For multiple inheritance, add ``override(A, B, ..)``,
|
``override`` to every overriding function. For multiple inheritance, add ``override(A, B, ..)``,
|
||||||
where you list all contracts that define the overridden function in the parentheses. When
|
where you list all contracts that define the overridden function in the parentheses. When
|
||||||
multiple bases define the same function, the inheriting contract must override all conflicting functions.
|
multiple bases define the same function, the inheriting contract must override all conflicting functions.
|
||||||
|
|
||||||
|
* In inline assembly, add ``()`` to all opcodes that do not otherwise accept an argument.
|
||||||
|
For example, change ``pc`` to ``pc()``, and ``gas`` to ``gas()``.
|
||||||
|
Loading…
Reference in New Issue
Block a user