Skip to content

Commit

Permalink
More about the ternary conditional operator...
Browse files Browse the repository at this point in the history
  • Loading branch information
FlatAssembler committed Jun 23, 2023
1 parent e554623 commit 9551fd3
Showing 1 changed file with 11 additions and 1 deletion.
12 changes: 11 additions & 1 deletion AEC_specification.html
Original file line number Diff line number Diff line change
Expand Up @@ -2024,7 +2024,17 @@ <h2 style="text-align: center">AEC Specification</h2>
The first argument of the ternary conditional operator is converted to
<span class="inline_code">Integer32</span> (that's how WebAssembly
represents Booleans), and the last two are converted to strongest type
of those two. The strongest types are pointers, next comes
of those two (<i
>UPDATE: In AECforWebAssembly v2.6.0 and newer, in case one of the
last two arguments of the ternary conditional operator is a structure,
but the other is either a structure of a different type, or not a
structure at all, the semantic analyzer reports an error. In previous
versions of AECforWebAssembly, that caused the compiler to crash. See
<a href="https://github.com/FlatAssembler/AECforWebAssembly/issues/19"
>this GitHub issue</a
>
for more information.</i
>). The strongest types are pointers, next comes
<span class="inline_code">Decimal64</span>, then
<span class="inline_code">Decimal32</span>, then
<span class="inline_code">Integer64</span>, then
Expand Down

0 comments on commit 9551fd3

Please sign in to comment.