ChanServ changed the topic of #zig to: zig programming language | ziglang.org | be excellent to each other | channel logs: https://irclog.whitequark.org/zig/
atk has quit [Quit: Well this is unexpected.]
atk has joined #zig
alexnask has quit [Ping timeout: 240 seconds]
<GitHub166> [zig] isaachier opened pull request #1158: Fix os_path_join for case where dirname is empty (master...os-join-empty-path-fix) https://git.io/f49Tl
davr0s has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
JinShil has joined #zig
kristate has joined #zig
kristate has quit [Ping timeout: 240 seconds]
dbandstra has joined #zig
<dbandstra> is there a convenient way to loop through enum values?
<dbandstra> i have var i: u32 = 0; while (i < @memberCount(SomeEnum)) : (i += 1) { const value = @intToEnum(SomeEnum, @intCast(@typeInfo(SomeEnum).Enum.tag_type, i))); }
<MajorLag1> Have you tried taking the @typeInfo, then doing `for(type_info.Enum.fields) |field| { ... };` ?
<MajorLag1> field will have a .name and .value
<dbandstra> hmm it's nice to be able to use a for loop but field.value seems to be a usize so unfortunately the @intToEnum is still needed
<dbandstra> do you know what the `defs: []Definition` thing is? i tried using it but th ecompiler crashed
mahmudov has quit [Remote host closed the connection]
xtreak has joined #zig
dbandstra has quit [Quit: Leaving]
m6w6 has quit [Quit: ZNC - http://znc.in]
very-mediocre has joined #zig
m6w6 has joined #zig
davr0s has joined #zig
xtreak has quit [Remote host closed the connection]
xtreak has joined #zig
xtreak has quit [Remote host closed the connection]
very-mediocre has quit [Ping timeout: 260 seconds]
JinShil has quit [Quit: Leaving]
xtreak has joined #zig
zolk3ri has joined #zig
quc has joined #zig
xtreak has quit [Remote host closed the connection]
zakora has joined #zig
xtreak has joined #zig
noonien has joined #zig
davr0s has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<MajorLag1> You still need @intToEnum because the TypeInfo structure's fields have static type. []Definitions holds information about namespaced constants, variables, and functions, if your Enum type has any.
xtreak has quit [Ping timeout: 276 seconds]
alexnask has joined #zig
<alexnask> @dbandstra Hit me up if you have questions about @typeInfo, I wrote it
<alexnask> I would appreciate a pastebin of the code that made the compiler crash too
davr0s has joined #zig
<alexnask> I will finish off basic @reify today or tomorrow and start working on std.meta after that, you sould be able to do something like for(meta.enum_fields(EnumType)) |field| { ... } after that
timetoplatypus has joined #zig
darithorn has joined #zig
adagio1 has joined #zig
very-mediocre has joined #zig
Ichorio has joined #zig
<GitHub67> [zig] andrewrk pushed 1 new commit to master: https://git.io/f4Hq1
<GitHub67> zig/master 8866bef Andrew Kelley: clean up self hosted main. delete unsupported commands
<GitHub104> [zig] andrewrk pushed 1 new commit to master: https://git.io/f4Hqy
<GitHub104> zig/master 3290e72 Andrew Kelley: std.zig.ast: fix incorrect impl of FnProto.firstToken...
davr0s has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
davr0s has joined #zig
alexnask has quit [Ping timeout: 245 seconds]
alexnask has joined #zig
MajorLag1 has quit [Ping timeout: 260 seconds]
darithorn has quit [Quit: Leaving]
abique has joined #zig
zakora has quit [Quit: WeeChat 2.0.1]
very-mediocre has quit [Quit: Page closed]
noonien has quit [Quit: Connection closed for inactivity]
mal``` has joined #zig
mal`` has quit [Quit: Leaving]
timetoplatypus has quit [Quit: leaving]
adagio1 has quit [Quit: Leaving.]
MajorLag1 has joined #zig
MajorLag1 has quit [Ping timeout: 255 seconds]
MajorLag1 has joined #zig
MajorLag1 has quit [Ping timeout: 245 seconds]
MajorLag1 has joined #zig
adagio1 has joined #zig
Ichorio has quit [Ping timeout: 255 seconds]
MajorLag1 has quit [Ping timeout: 260 seconds]
alexnask has quit [Ping timeout: 256 seconds]
MajorLag1 has joined #zig
quc has quit [Remote host closed the connection]
SimonNa has quit [Remote host closed the connection]
SimonNa has joined #zig
<GitHub72> [zig] bnoordhuis opened pull request #1159: add f16 type (master...f16) https://git.io/f4HjS
mahmudov has joined #zig
abique has quit [Quit: abique]