ChanServ changed the topic of #zig to: zig programming language | ziglang.org | be excellent to each other | channel logs: https://irclog.whitequark.org/zig/
<andrewrk>
emekoi, even better, it's semantically guaranteed to not even analyze the dead branch
<andrewrk>
try it yourself - put a compile error such as `var x: bool = 3;` inside the `else` clause of `if (true)`
allan0 has quit [Ping timeout: 250 seconds]
allan0 has joined #zig
porky11 has quit [Ping timeout: 268 seconds]
<emekoi>
does the ipv6 parser in std/net support ip addresses like "::1"?
<daurnimator>
I'd hope so....
<daurnimator>
The real question is does it support scopes
steveno has joined #zig
<daurnimator>
looks like it only supports numeric scopes?
<emekoi>
from a cursory glance i don't think it does
<ibebrett>
attempting to use SDL_LoadTexture via: const c = @cImport({ @cInclude("SDL2/SDL_image.h"); });
<ibebrett>
getting this error when attempting to use the function: expected type '?*struct_SDL_Renderer', found '*struct_SDL_Renderer' var tex = c.IMG_LoadTexture(renderer, c"test.png")
<ibebrett>
now to me this is saying it expected an optional pointer to renderer
<ibebrett>
is there a way to cast it to that?
<ibebrett>
nevermind i think i figured out what it is
<ibebrett>
so i am using someone's zig sdl2 and they redefined all the structs
<ibebrett>
got it to work by force casting, but not optional
ibebrett has quit [Ping timeout: 256 seconds]
Shankar has joined #zig
williamcol3 has joined #zig
Shankar has quit [Quit: Leaving]
<emekoi>
is there a reason that implicit returns were removed?
suirad has quit [Ping timeout: 256 seconds]
_whitelogger has joined #zig
reductum has joined #zig
IntoxicatedHippo has quit [Ping timeout: 245 seconds]
qazo has quit [Quit: 345345]
reductum has quit [Read error: Connection reset by peer]
emekoi has quit [Ping timeout: 256 seconds]
reductum has joined #zig
<reductum>
Oh my goodness. I spent so much time trying to figure out why my tests were passing, but my answer for advent of code 5-1 was wrong.
<reductum>
Then I actually read the question.
reductum has quit [Read error: Connection reset by peer]
qazo has joined #zig
reductum has joined #zig
reductum has quit [Quit: WeeChat 2.3]
basro has quit [Disconnected by services]
basro_ has joined #zig
basro_ is now known as basro
<nbjoerg>
andrewrk: I would recomment avoiding the term "analyze the dead branch"
<nbjoerg>
andrewrk: that brings back nightmares from Visual Studio
<nbjoerg>
andrewrk: where certain uninstanciated templates literally contained syntax errors that were not caught for years because VS kind of handled templates as token string
<nbjoerg>
andrewrk: without actually parsing them
wilsonk has quit [Read error: Connection reset by peer]
<Hejsil>
Well, i guess it is semantically correct, but i did not expect the compiler to inline the value into the function
<Hejsil>
But there should really be a call too
<Hejsil>
I was hoping I could use @noInlineCall to ensure that the functions code is not inlined, so it is not optimized based on the context of where it is called
<Hejsil>
(working on a small benchmarking lib)
<j`ey>
wait that looks wrong, got confused
<j`ey>
jumo is fine because its a leaf call
<Hejsil>
Not if you expect to get your own stackframe (in a GC)