mirror of
https://github.com/krgamestudios/Toy.git
synced 2026-04-20 01:04:08 +10:00
Expanded bytecode inspector, added functions to Toy_copyValue
This commit is contained in:
@@ -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);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user