Skip to content

Commit

Permalink
add exn_read
Browse files Browse the repository at this point in the history
  • Loading branch information
dschuff committed Mar 29, 2024
1 parent 4d08a58 commit 74a92cb
Showing 1 changed file with 15 additions and 0 deletions.
15 changes: 15 additions & 0 deletions document/core/appendix/embedding.rst
Original file line number Diff line number Diff line change
Expand Up @@ -614,6 +614,21 @@ Exceptions
\end{array}
.. _embed-exn-read:

:math:`\F{exn\_read}(\store, \exnaddr) : (\tagaddr, \val^\ast)`
......................................................................

1. Let :math:`\X{ei}` be the :ref:`exception instance <syntax-exninst>` :math:`\store.\SEXNS[\exnaddr]`.

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`.

.. math::
\begin{array}{lcll}
\F{exn\_read}(S, a) &=& (a', v^\ast) \\
\end{array}
.. index:: global, global address, store, global instance, global type, value
.. _embed-global:

Expand Down

0 comments on commit 74a92cb

Please sign in to comment.