callisto-lang / compiler

The Callisto compiler of the 13th month, and other language extras
https://callisto.mesyeti.uk
MIT License
50 stars 4 forks source link

Implement broken on Uxn backend #6

Closed yeti0904 closed 2 months ago

yeti0904 commented 3 months ago

Program:

include "cores/select.cal"
include "std/io.cal"

struct meow
    cell meow
end

implement meow init
    "meow init\n" printstr
    5 swap !
end

implement meow deinit
    "meow end\n" printstr
end

let meow myMeow
myMeow @ printdec new_line

should print:

meow init
5
meow end

prints:

meow init
0
m
yeti0904 commented 2 months ago

fixed in 5a1163547e788545552f0815a8056095bf91fa77