Expanded bytecode inspector, added functions to Toy_copyValue

This commit is contained in:
2026-04-17 11:55:46 +10:00
parent 81c95ff69d
commit 5b101d763e
12 changed files with 175 additions and 77 deletions

View File

@@ -4,6 +4,16 @@ fn isLeapYear(n: int) {
if (n % 100 == 0) return false;
return n % 4 == 0;
}
print isLeapYear(1999);
print isLeapYear(2000);
print isLeapYear(2004);
//check for string reuse
{
print isLeapYear(1999);
}
{
print isLeapYear(2000);
}
{
print isLeapYear(2004);
}