fix(emitter): loop in expression context via needsValue + IIFE wrapper

- Add needsValue parameter to emitExpr/emitSpecialForm to track expression context
- loop wraps in (proc(): CljVal = ... )() when needsValue=true
- Function call args, let/def values, vector/map literals pass needsValue=true
- emitProgramInternal passes needsValue=isLast for top-level forms
- Fixes: loop as function arg, loop in let RHS, loopResult at top level
This commit is contained in:
2026-05-12 12:54:00 +03:00
parent aac39a08ca
commit a1a65f1c27
2 changed files with 31 additions and 20 deletions
+1
View File
@@ -26,3 +26,4 @@ test_single_debug.py
src/tui_config
experiments/native-lib/test_client/test_client
experiments/wasm/tools/zig/
lib/bring_http.nim