mirror of
https://github.com/ethereum/solidity
synced 2023-10-03 13:03:40 +00:00
Update documentation about (reserved) keywords
This commit is contained in:
parent
b71a4d6ce3
commit
2456c6d503
@ -11,7 +11,7 @@ Breaking changes:
|
|||||||
* Commandline Interface: Add option to disable or choose hash method between IPFS and Swarm for the bytecode metadata.
|
* Commandline Interface: Add option to disable or choose hash method between IPFS and Swarm for the bytecode metadata.
|
||||||
* General: Disallow explicit conversions from external function types to ``address`` and add a member called ``address`` to them as replacement.
|
* General: Disallow explicit conversions from external function types to ``address`` and add a member called ``address`` to them as replacement.
|
||||||
* General: Enable Yul optimizer as part of standard optimization.
|
* General: Enable Yul optimizer as part of standard optimization.
|
||||||
* General: New reserved keyword: ``virtual``.
|
* General: New reserved keywords: ``override``, ``receive``, and ``virtual``.
|
||||||
* General: ``private`` cannot be used together with ``virtual``.
|
* General: ``private`` cannot be used together with ``virtual``.
|
||||||
* General: Split unnamed fallback functions into two cases defined using ``fallback()`` and ``receive()``.
|
* General: Split unnamed fallback functions into two cases defined using ``fallback()`` and ``receive()``.
|
||||||
* Inheritance: State variable shadowing is now disallowed.
|
* Inheritance: State variable shadowing is now disallowed.
|
||||||
|
@ -30,7 +30,7 @@ This section lists purely syntactic changes that do not affect the behavior of e
|
|||||||
longer possible to resize storage arrays assigning a new value to their length. Use ``push()``,
|
longer possible to resize storage arrays assigning a new value to their length. Use ``push()``,
|
||||||
``push(value)`` or ``pop()`` instead, or assign a full array, which will of course overwrite existing content.
|
``push(value)`` or ``pop()`` instead, or assign a full array, which will of course overwrite existing content.
|
||||||
|
|
||||||
* New reserved keywords: ``virtual``.
|
* New reserved keywords: ``override``, ``receive``, and ``virtual``.
|
||||||
|
|
||||||
* The names of variables declared in inline assembly may no longer end in ``_slot`` or ``_offset``.
|
* The names of variables declared in inline assembly may no longer end in ``_slot`` or ``_offset``.
|
||||||
|
|
||||||
|
@ -719,9 +719,9 @@ These keywords are reserved in Solidity. They might become part of the syntax in
|
|||||||
|
|
||||||
``abstract``, ``after``, ``alias``, ``apply``, ``auto``, ``case``, ``catch``, ``copyof``, ``default``,
|
``abstract``, ``after``, ``alias``, ``apply``, ``auto``, ``case``, ``catch``, ``copyof``, ``default``,
|
||||||
``define``, ``final``, ``immutable``, ``implements``, ``in``, ``inline``, ``let``, ``macro``, ``match``,
|
``define``, ``final``, ``immutable``, ``implements``, ``in``, ``inline``, ``let``, ``macro``, ``match``,
|
||||||
``mutable``, ``null``, ``of``, ``override``, ``partial``, ``promise``, ``reference``, ``relocatable``,
|
``mutable``, ``null``, ``of``, ``partial``, ``promise``, ``reference``, ``relocatable``,
|
||||||
``sealed``, ``sizeof``, ``static``, ``supports``, ``switch``, ``try``, ``typedef``, ``typeof``,
|
``sealed``, ``sizeof``, ``static``, ``supports``, ``switch``, ``try``, ``typedef``, ``typeof``,
|
||||||
``unchecked``, ``virtual``.
|
``unchecked``.
|
||||||
|
|
||||||
Language Grammar
|
Language Grammar
|
||||||
================
|
================
|
||||||
|
Loading…
Reference in New Issue
Block a user