Skip right expression evaluation in OR if left returns true

This commit is contained in:
Gašper Dobrovoljc committed 2025-06-03 18:26:19 +02:00
1 parent 1b45d6a0f9
commit 73e1113764
3 files changed
+41 -6

No files matched your search

+12
View File
@@ -0,0 +1,12 @@
fun putstr(s)
fun f1() =
putstr("funkcija 1\n\00"),
0
fun f2() =
putstr("funkcija 2\n\00"),
0
fun main() =
f1() || f2()