ChanServ changed the topic of #zig to: zig programming language | ziglang.org | be excellent to each other | channel logs: https://irclog.whitequark.org/zig/
jfo has joined #zig
jfo has quit [Ping timeout: 252 seconds]
return0e has quit [Ping timeout: 260 seconds]
accidental has joined #zig
<accidental> hey all, quick question - how would you assert on the error from a !void function?
<accidental> I'm doing `const val = try my_function(); assert(val == error.MyError)` but I'm getting `operator not allowed for type '@typeOf(bf_interp).ReturnType.ErrorSet!void'` on the equality operator
jfo has joined #zig
accidental has quit [Quit: Page closed]
ice1000 has quit [Ping timeout: 260 seconds]
jfo has quit [Ping timeout: 246 seconds]
cenomla has joined #zig
zesterer has quit [Quit: zesterer]
MajorLag has joined #zig
cenomla has quit [Quit: cenomla]
jfo has joined #zig
jfo has quit [Ping timeout: 252 seconds]
jfo has joined #zig
jfo has quit [Ping timeout: 252 seconds]
_whitelogger has joined #zig
meh304 has joined #zig
meh304 has quit [Client Quit]
jfo has joined #zig
jfo has quit [Ping timeout: 245 seconds]
jfo has joined #zig
<jfo> accidental: https://github.com/jfo/zigf/blob/89bd752f4cc057783c289ad53169a06e3a3ae0c3/bf_tests.zig#L80-L84 would work, but direct error value comparison like you'd expect is planned, I think. error sets are pretty new rn
jfo has quit [Ping timeout: 252 seconds]
jfo has joined #zig
jfo has quit [Ping timeout: 256 seconds]
jfo has joined #zig
davr0s has joined #zig
jfo has quit [Ping timeout: 246 seconds]
POF4J4kaced has joined #zig
POF4J4kaced has quit [Client Quit]
jfo has joined #zig
jfo has quit [Quit: WeeChat 1.9.1]
zesterer has joined #zig
Hejsil has joined #zig
<Hejsil> Man, this newline discussion is never gonna end. Can already see the everyday "Why wont you just make it work" posts in the future ):
jfo has joined #zig
<jfo> :\
hoppetosse has joined #zig
<MajorLag> Hejsil, welcome to the internet, where people will endlessly complain about the most meaningless details. It is interesting that "Go" was the example, seeing as it is literally impossible to use Allman style bracing in Go.
<MajorLag> andrewrk: translate-c doesn't handle bitfields (converts to @OpaqueType), but from what I can tell it totally could, using packed structs with @IntTypes. Is this just not handled yet, or is there a good reason not to do that that I'm missing? Nearest I can figure the only real issue with it is that you might have to cast the @IntType when you use it.
Hejsil has quit [Ping timeout: 260 seconds]
jfo has quit [Ping timeout: 252 seconds]
davr0s has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
jfo has joined #zig
zesterer has quit [Quit: zesterer]
davr0s has joined #zig
<GitHub61> [zig] ice1000 opened pull request #839: Fix some explicit errors (master...patch-1) https://git.io/vxOIY
return0e has joined #zig
return0e has quit [Ping timeout: 260 seconds]
davr0s has quit [Ping timeout: 264 seconds]
jfo has quit [Ping timeout: 246 seconds]
jfo has joined #zig
Hejsil has joined #zig
davr0s has joined #zig
Hejsil has quit [Ping timeout: 260 seconds]
jfo has quit [Quit: WeeChat 1.9.1]
<GitHub189> [zig] bnoordhuis opened pull request #840: add CLANG_LIBDIRS cmake build variable (master...libdirs) https://git.io/vxOsj
jordyd has quit [Quit: Leaving]
return0e has joined #zig
hoppetosse has quit [Ping timeout: 240 seconds]
<GitHub34> [zig] andrewrk pushed 3 new commits to master: https://git.io/vxOcQ
<GitHub34> zig/master 453439a Andrew Kelley: Merge pull request #840 from bnoordhuis/libdirs...
<GitHub34> zig/master c2c34c0 Ben Noordhuis: add LLVM_LIBDIRS to link directories...
<GitHub34> zig/master 4a921b2 Ben Noordhuis: add CLANG_LIBDIRS cmake build variable...
<GitHub19> [zig] andrewrk closed pull request #840: add CLANG_LIBDIRS cmake build variable (master...libdirs) https://git.io/vxOsj
<GitHub16> [zig] andrewrk closed pull request #839: Fix some explicit errors (master...patch-1) https://git.io/vxOIY
<GitHub110> zig/master bbad0fa Andrew Kelley: Merge pull request #839 from ice1000/patch-1...
<GitHub110> zig/master cc6ac77 Tesla Ice Zhang: Fix some explicit errors
<GitHub110> [zig] andrewrk pushed 2 new commits to master: https://git.io/vxOcF
davr0s has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
davr0s has joined #zig
hoppetosse has joined #zig
hoppetosse has quit [Remote host closed the connection]
hoppetosse has joined #zig
davr0s has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
davr0s has joined #zig
<andrewrk> MajorLag, your analysis of translate-c with regards to bit fields is correct
hoppetosse has quit [Remote host closed the connection]
hoppetosse has joined #zig
btbytes has joined #zig
btbytes has quit [Client Quit]
davr0s has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
davr0s has joined #zig
<andrewrk> it's just not handled yet
hoppetosse has quit [Ping timeout: 264 seconds]
<GitHub65> [zig] andrewrk pushed 2 new commits to master: https://git.io/vxO2l
<GitHub65> zig/master d959faa Andrew Kelley: add test for addIncludeDir for test step
<GitHub65> zig/master bea9e9c Marc Tiehuis: Add addIncludeDir to TestStep + fix build template...
<GitHub146> [zig] andrewrk closed pull request #833: Add addIncludeDir to TestStep + fix build template (master...issue-794) https://git.io/vxkUE
hoppetosse has joined #zig
hopppetosse has joined #zig
hoppetosse has quit [Ping timeout: 256 seconds]
davr0s has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
BobbyOrr has joined #zig
BobbyOrr has quit [Client Quit]
davr0s has joined #zig