ChanServ changed the topic of #zig to: zig programming language | ziglang.org | be excellent to each other | channel logs: https://irclog.whitequark.org/zig/
IntoxicatedHippo has joined #zig
Ichorio has quit [Ping timeout: 240 seconds]
_whitelogger has joined #zig
knebulae has quit [Read error: Connection reset by peer]
return0e has quit [Ping timeout: 272 seconds]
return0e has joined #zig
return0e has quit [Read error: Connection reset by peer]
return0e has joined #zig
emekoi has joined #zig
<emekoi>
would it be possible to get zig to generate a zig version of `ucontext_t` in builtin.zig?
<emekoi>
also i think we should add the builtin `@getRuntimeSafety`.
return0e_ has joined #zig
return0e has quit [Ping timeout: 250 seconds]
<andrewrk>
emekoi, use std.debug.runtime_safety
<emekoi>
does that change with `@setRuntimeSafety`?
<IntoxicatedHippo>
How would I write the signature for a function that accepts an ArrayList of any type?
return0e_ has quit [Read error: Connection reset by peer]
return0e has joined #zig
return0e has quit [Read error: Connection reset by peer]
return0e has joined #zig
emekoi has quit [Ping timeout: 250 seconds]
return0e has quit [Read error: Connection reset by peer]
return0e has joined #zig
_whitelogger has joined #zig
return0e_ has joined #zig
return0e has quit [Ping timeout: 250 seconds]
IntoxicatedHippo has quit [Ping timeout: 240 seconds]
Zaab1t has joined #zig
return0e_ has quit [Read error: Connection reset by peer]
return0e has joined #zig
Ichorio has joined #zig
<MajorLag>
IntoxicatedHippo: use `var`: `pub fn foo(list: var) !void`.
knebulae has joined #zig
unique_id has joined #zig
<unique_id>
IntoxicatedHippo seems to be offline, but also you can do "fn foo(comptime t: type, list: std.ArrayList(t)) void {}" and call it: "foo(i32, std.ArrayList(i32))". If using the 'var' method you might be able to (or in the future) comptime check that it is an ArrayList of some type