Skip to content

Commit 74a92cb

Browse files
committedMar 29, 2024·
add exn_read
1 parent 4d08a58 commit 74a92cb

File tree

1 file changed

+15
-0
lines changed

1 file changed

+15
-0
lines changed
 

‎document/core/appendix/embedding.rst

+15
Original file line numberDiff line numberDiff line change
@@ -614,6 +614,21 @@ Exceptions
614614
\end{array}
615615
616616
617+
.. _embed-exn-read:
618+
619+
:math:`\F{exn\_read}(\store, \exnaddr) : (\tagaddr, \val^\ast)`
620+
......................................................................
621+
622+
1. Let :math:`\X{ei}` be the :ref:`exception instance <syntax-exninst>` :math:`\store.\SEXNS[\exnaddr]`.
623+
624+
2. Return the :ref:`tag address <syntax-tagaddr>` :math:`\X{ei}.\EITAG~\tagaddr` paired with :ref:`values <syntax-val>` :math:`\X{ei}.\EIFIELDS~\val^\ast`.
625+
626+
.. math::
627+
\begin{array}{lcll}
628+
\F{exn\_read}(S, a) &=& (a', v^\ast) \\
629+
\end{array}
630+
631+
617632
.. index:: global, global address, store, global instance, global type, value
618633
.. _embed-global:
619634

0 commit comments

Comments
 (0)
Please sign in to comment.