Files
Toy/scripts/hello_world.toy
T
Ratstail91 83fb5222a2 Found and fixed a memory leak in the rope strings
Also fixed a bit manipulation error in the GC.
2026-05-10 15:45:16 +10:00

20 lines
218 B
Plaintext

/*
fn swap(a, b) {
return b, a;
}
var a = 42;
var b = 69;
var c;
var d;
//BUG: still causes a segfault
c, d = swap(a, b);
*/
{ var str = "Hello"; var i = 0; while (i < 10_000) { str = str .. " World"; i++; } }