Skip right expression evaluation in OR if left returns true
This commit is contained in:
12
prg/test.pins25
Normal file
12
prg/test.pins25
Normal 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()
|
||||
Reference in New Issue
Block a user