Skip right expression evaluation in OR if left returns true

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

12
prg/test.pins25 Normal file
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()