Post #1981534
2026-05-04 12:05 UTC
@Steel_Virgin @typeswitch for (1), assignment evaluates to the new value after the assignment (so `(p)[index]` here).
for (2), `(do this, return that)` is pretty much the behaviour here: https://en.wikipedia.org/wiki/Comma_operator
it's kind of important for C reasons since it acts as a sequence point (meaning the left-hand side is guaranteed to be fully evaluated before the right-hand side)
Replies (1)
-
@Steel_Virgin@eldritch.cafe 2026-05-04 12:06
@firefly @typeswitch thank you ♥