Skip to content

Commit 9aeb223

Browse files
committed
docs/changes: add changes from RFC 4.
1 parent 58721ee commit 9aeb223

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

docs/changes.rst

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,14 +30,19 @@ Language changes
3030

3131
* Added: :class:`ShapeCastable`, similar to :class:`ValueCastable`.
3232
* Added: :meth:`Value.as_signed` and :meth:`Value.as_unsigned` can be used on left-hand side of assignment (with no difference in behavior).
33+
* Added: :meth:`Const.cast`, evaluating constant-castable values and returning a :class:`Const`. (`RFC 4`_)
34+
* Added: :meth:`Value.matches` and ``with m.Case():`` accept any constant-castable objects. (`RFC 4`_)
3335
* Changed: :meth:`Value.cast` casts :class:`ValueCastable` objects recursively.
3436
* Changed: :meth:`Value.cast` treats instances of classes derived from both :class:`enum.Enum` and :class:`int` (including :class:`enum.IntEnum`) as enumerations rather than integers.
3537
* Changed: :class:`Cat` accepts instances of classes derived from both :class:`enum.Enum` and :class:`int` (including :class:`enum.IntEnum`) without warning.
36-
* Deprecated: :meth:`Const.normalize`. (`RFC 5 <https://amaranth-lang.org/rfcs/0005-remove-const-normalize.html>`_)
38+
* Deprecated: :meth:`Const.normalize`. (`RFC 5`_)
3739
* Removed: (deprecated in 0.1) casting of :class:`Shape` to and from a ``(width, signed)`` tuple.
3840
* Removed: (deprecated in 0.3) :class:`ast.UserValue`.
3941
* Removed: (deprecated in 0.3) support for ``# nmigen:`` linter instructions at the beginning of file.
4042

43+
.. _RFC 4: https://amaranth-lang.org/rfcs/0004-const-castable-exprs.html
44+
.. _RFC 5: https://amaranth-lang.org/rfcs/0005-remove-const-normalize.html
45+
4146

4247
Toolchain changes
4348
-----------------

0 commit comments

Comments
 (0)