mirror of
https://github.com/krgamestudios/Toy.git
synced 2026-04-15 14:54:07 +10:00
WIP bad approach, read more
I build a self-referential system, then tried to copy only parts. I need to step back and adjust my approach. 'Toy_private_deepCopyValue' and 'Toy_private_deepCopyScope' need to be ripped out, and I need to simply accept there will be only one instance of 'Toy_Bucket' that isn't freed until the top-level VM is. I need an hour's break before I'll tackle this again. See #163
This commit is contained in:
@@ -1,29 +1,3 @@
|
||||
/*
|
||||
|
||||
fn name(param1: int, param2: float, param3: string, param4) {
|
||||
print param1;
|
||||
print param2;
|
||||
print param3;
|
||||
print param4;
|
||||
}
|
||||
|
||||
name(42, 3.14, "hello world", -1);
|
||||
|
||||
fn output(arg) {
|
||||
print arg;
|
||||
}
|
||||
|
||||
output(null);
|
||||
output(true);
|
||||
output(42);
|
||||
output(3.1415);
|
||||
output("woot!");
|
||||
output([1, 23, 3]);
|
||||
output(["key":1]);
|
||||
output(name);
|
||||
|
||||
*/
|
||||
|
||||
//TODO: Not yet functional
|
||||
fn makeCounter() {
|
||||
var counter: int = 0;
|
||||
|
||||
Reference in New Issue
Block a user