mirror of
https://github.com/krgamestudios/Toy.git
synced 2026-04-15 14:54:07 +10:00
Implemented scopes
This commit is contained in:
22
scripts/testificate.toy
Normal file
22
scripts/testificate.toy
Normal file
@@ -0,0 +1,22 @@
|
||||
|
||||
//normal scope stuff
|
||||
var answer = 42;
|
||||
print answer;
|
||||
|
||||
{
|
||||
var answer = 7;
|
||||
print answer;
|
||||
}
|
||||
|
||||
print answer;
|
||||
|
||||
//I wonder if...
|
||||
var question = 42;
|
||||
print question;
|
||||
|
||||
{
|
||||
var question = question;
|
||||
print question;
|
||||
}
|
||||
|
||||
print question;
|
||||
Reference in New Issue
Block a user