ChanServ changed the topic of #zig to: zig programming language | ziglang.org | be excellent to each other | channel logs: https://irclog.whitequark.org/zig/
return0e_ has quit [Ping timeout: 246 seconds]
return0e_ has joined #zig
return0e_ has quit [Ping timeout: 245 seconds]
return0e_ has joined #zig
darithorn has quit [Quit: Leaving]
steveno__ has joined #zig
darithorn has joined #zig
steveno__ has quit [Ping timeout: 268 seconds]
<andrewrk> daurnimator: hard to say, but things are moving swiftly along now. I fixed a few issues found by the std lib tests today and ran into a tricky one
<daurnimator> k
<daurnimator> right now I'm getting confused by how to get --output-h to export a struct
<daurnimator> e.g. https://ptpb.pw/8gRa how do I get newVec3 in a .h file?
marmotini_ has joined #zig
return0e_ has quit [Read error: Connection reset by peer]
darithorn has quit [Remote host closed the connection]
wilsonk has quit [Read error: No route to host]
darithorn has joined #zig
wilsonk has joined #zig
<daurnimator> Different question: is there a nicer way to write https://ptpb.pw/YzGC ?
darithorn has quit [Quit: Leaving]
_whitelogger has joined #zig
marmotini_ has joined #zig
kristate has quit [Remote host closed the connection]
kristate has joined #zig
marmotini_ has quit [Ping timeout: 246 seconds]
marmotini_ has joined #zig
steveno__ has joined #zig
steveno__ has quit [Ping timeout: 268 seconds]
steveno__ has joined #zig
<MajorLag> daurnimator: You haven't exported the struct, it might also need to be declared extern. I'm guessing here, havning never done anything with output-h.
<MajorLag> the only "cleaner" thing I can think to do with your other question is to make it one line, but that will make it worse if there's more than one err to check: `if(x) |_| break else |err| if(err != error.OutOfMemory) break;`
<MajorLag> though, you could do this: https://pastebin.com/aknbDhSf
<MajorLag> and that would still be very readable with multiple errors.
<MajorLag> it occurs to me that this code is part of a loop, in which case there may be a better way using while(curr) |val| {} else |err| {}
marmotini_ has quit [Ping timeout: 245 seconds]
steveno__ has quit [Ping timeout: 240 seconds]
steveno__ has joined #zig
marmotini_ has joined #zig
marmotini_ has quit [Ping timeout: 240 seconds]
hg has joined #zig
kristate has quit [Remote host closed the connection]
kristate has joined #zig
kristate has quit [Ping timeout: 268 seconds]
darithorn has joined #zig
_whitelogger has joined #zig
marmotini_ has joined #zig
marmotini_ has quit [Ping timeout: 246 seconds]
kristate has joined #zig
kristate has quit [Remote host closed the connection]
marmotini_ has joined #zig
Zaab1t has joined #zig
Ichorio has joined #zig
marmotini has joined #zig
marmotini_ has quit [Ping timeout: 245 seconds]
kristate has joined #zig
steveno__ has quit [Ping timeout: 250 seconds]
kristate has quit [Ping timeout: 245 seconds]
marmotini has quit [Remote host closed the connection]
wootehfoot has joined #zig
MajorLag has quit [Ping timeout: 264 seconds]
MajorLag has joined #zig
steveno__ has joined #zig
return0e_ has joined #zig
steveno__ has quit [Quit: Leaving]
return0e_ has quit [Remote host closed the connection]
return0e_ has joined #zig
Zaab1t has quit [Quit: bye bye friends]
Zaab1t has joined #zig
MajorLag has quit [Ping timeout: 246 seconds]
MajorLag has joined #zig
Zaab1t has quit [Quit: bye bye friends]
kristate has joined #zig
<daurnimator> MajorLag: it is part of a loop; but it's a do-while.... so in zig it's a while(true) { ...... if (x) { break; } }
return0e_ has quit []
hg has quit [Quit: WeeChat 2.3]
Ichorio has quit [Read error: Connection reset by peer]
wootehfoot has quit [Read error: Connection reset by peer]
Marumoto has joined #zig
kristate has quit [Ping timeout: 245 seconds]
<andrewrk> whew, got through the tricky copy elision case