You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I'm trying to run ziglisp with zig version 0.14.0-dev.839+a931bfada.
When I try zig run src/main.zig, as per the README, I get
src/main.zig:19:9: error: local variable is never mutated
var env = try init();
^~~
src/main.zig:19:9: note: consider using 'const'
src/main.zig:71:9: error: local variable is never mutated
var buffer: []u8 = try alloc.alloc(u8, len);
^~~~~~
src/main.zig:71:9: note: consider using 'const'
src/main.zig:88:9: error: local variable is never mutated
var result = try C.alloc.alloc(ValueRef, sexprs.len);
^~~~~~
src/main.zig:88:9: note: consider using 'const'
I'll open a branch to change these var to const, you can merge it if you want (or not, up to you ^^)
The text was updated successfully, but these errors were encountered:
Hello,
I'm trying to run
ziglisp
with zig version0.14.0-dev.839+a931bfada
.When I try
zig run src/main.zig
, as per the README, I getI'll open a branch to change these
var
toconst
, you can merge it if you want (or not, up to you ^^)The text was updated successfully, but these errors were encountered: