You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Apr 25, 2025. It is now read-only.
Modified the throw context example with concrete types but not concrete values. (#219)
* Simplified throw context example, with concrete types but not concrete values.
Addresses @aheejin's request in a previous review comment:
#180 (comment)
Originally I wrote this using
- `val_{i32} = (i32.const 1)`,
- `val_{f32} = (f32.const 2.0)`, and
- `val_{i64} = (i64.const 3)`,
but the example seemed then really long.
To keep the example relatively short I switched to the current version.
* Typesetting fixes.
* Addressed review comments.
Co-authored-by: Andreas Rossberg <[email protected]>
Copy file name to clipboardExpand all lines: document/core/exec/runtime.rst
+12-16Lines changed: 12 additions & 16 deletions
Original file line number
Diff line number
Diff line change
@@ -729,41 +729,37 @@ If no exception :ref:`handler that catches the exception <syntax-handler>` is fo
729
729
|CAUGHTadm| blocks do not represent active handlers. Instead, they delimit the continuation of a handler that has already been selected. Their sole purpose is to record the exception that has been caught, such that |RETHROW| can access it inside such a block.
730
730
731
731
.. note::
732
-
For example, catching a simple :ref:`throw <exec-throw>` in a :ref:`try block <exec-try-catch>` would be as follows.
732
+
For example, catching a simple :ref:`throw <syntax-throw>` in a :ref:`try block <syntax-try-catch>` would be as follows.
733
733
734
-
Assume that :math:`\expand_F(bt) = [t1^n] \to [t2^m]`, for some :math:`n > m` such that :math:`t1^n[(n-m):n] = t2^m`,
735
-
and that the tag address `a` of :math:`x` corresponds to the tag type :math:`[t2^m] \to []`.
734
+
Assume that :math:`\expand_F(bt) = [\I32~\F32~\I64] \to [\F32~\I64]`,
735
+
and that the tag address `a` of :math:`x` has tag type :math:`[\F32~\I64] \to []`.
736
+
Let :math:`\val_{i32}`, :math:`\val_{f32}`, and :math:`\val_{i64}` be values of type |I32|, |F32|, and |I64| respectively.
0 commit comments