Short circuits are now functioning correctly, resolved #73

This commit is contained in:
2023-08-06 04:28:02 +10:00
parent cfec1b6911
commit f885fdaf4c
12 changed files with 199 additions and 45 deletions

View File

@@ -1,8 +0,0 @@
//something was odd, so I broke this down for testing
import math;
fn shadowCastPoint(x: float, y: float, depth: int) {
return sin(tan(x/y)) * depth;
}
print shadowCastPoint(1, 1, 10);

13
scripts/test.toy Normal file
View File

@@ -0,0 +1,13 @@
fn doA() {
print "doA()";
return true;
}
fn doB() {
print "doB()";
return true;
}
if (doA() || doB()) {
print "success";
}