_stackalloc

This commit is contained in:
2026-05-30 21:01:01 +02:00
parent f181cfe675
commit 31b71a5e19
8 changed files with 46 additions and 37 deletions

View File

@@ -7,7 +7,7 @@ func part1[lines: Array] : void
largest := 0
for j in 0..str.len(line)
for k in (j+1)..str.len(line)
s := mem.alloc(3) as str
s := _stackalloc(3) as str
s[0] = line[j]
s[1] = line[k]
s[2] = 0