ChanServ changed the topic of #zig to: zig programming language | ziglang.org | be excellent to each other | channel logs: https://irclog.whitequark.org/zig/
<GitHub76> [zig] andrewrk pushed 1 new commit to master: https://git.io/vNeFu
<GitHub76> zig/master 5a800db Andrew Kelley: build: std files and c header files are only specified once...
minus has quit [Ping timeout: 240 seconds]
minus has joined #zig
Mentol has joined #zig
<Mentol> how to append an item to an array? is there any method for it?
<andrewrk> Mentol, an array has a compile time known size. You can concatenate arrays at compile time
<andrewrk> if you want to append items at runtime, I suggest looking at std.ArrayList
<Mentol> so, if I use 'var msg: [4][]u8' for an array of strings with max. length = 4
<Mentol> is possible to know which was the las position where there is a value?
<Mentol> to add a new value in the next one
<andrewrk> you could keep a separate index variable
<Mentol> ok
<andrewrk> or you could make the type [4]?[]u8
<Mentol> for what is '?' ?
<Mentol> nullable
<andrewrk> you can initialize it all to null like this: [1]?[]u8{null} ** 4
<andrewrk> hm there is an error in those docs
<andrewrk> fixed
<GitHub166> [zig] andrewrk pushed 1 new commit to master: https://git.io/vNveO
<GitHub166> zig/master 5c8600d Andrew Kelley: add december in review to reading material; fix docs
<Mentol> and where is the doc. about std.ArrayList?
<andrewrk> I am sorry, there is not yet published documentation for the standard library
<Mentol> I would want to concatenate all elements in the array using a character to join them (and convert it to string), if it's possible
<Mentol> don't worry; I'll look at the source code
<Mentol> thanks!
<andrewrk> Mentol, at the bottom of thise file you can see example usage
<Mentol> is there any advantage at initialing an array with null values? [4][]u8 vs [4]?[u8]
Mentol has quit [Quit: Leaving]
<GitHub153> [zig] andrewrk pushed 1 new commit to master: https://git.io/vNvvt
<GitHub153> zig/master 477e3f6 Andrew Kelley: self-hosted build: use llvm-config from stage1
<andrewrk> only if you want the concept of null
<GitHub47> [zig] andrewrk pushed 1 new commit to master: https://git.io/vNvJH
<GitHub47> zig/master 0cd63b2 Andrew Kelley: fix self-hosted build on windows
arBmind1 has joined #zig
arBmind has quit [Ping timeout: 260 seconds]
arBmind1 has quit [Quit: Leaving.]
arBmind has joined #zig
arBmind1 has joined #zig
arBmind has quit [Ping timeout: 246 seconds]
cenomla has joined #zig
Mentol has joined #zig
cenomla has quit [Quit: cenomla]
cenomla has joined #zig
<Mentol> is there any type to handle strings? i.e. when a function has to return a string
<Mentol> or do you have to use [n]u8?
cenomla has quit [Ping timeout: 248 seconds]
<Mentol> and how to add text to a string?
Mentol has quit [Quit: Leaving]
sparrisable has joined #zig
<sparrisable> Thumbs up for the "Zig: December 2017 in Review", a great read for me.
sparrisable has quit [Quit: Page closed]
arBmind1 has quit [Quit: Leaving.]
arBmind has joined #zig
arBmind has quit [Ping timeout: 268 seconds]
Tobba has joined #zig
alandipert has quit [Quit: Ping timeout (120 seconds)]
alandipert has joined #zig
<GitHub84> [zig] andrewrk pushed 1 new commit to master: https://git.io/vNfBq
<GitHub84> zig/master e1c03d9 Andrew Kelley: self-hosted compiler works on windows...
jjido has joined #zig
skyfex has joined #zig
skyfex has quit [Ping timeout: 260 seconds]
jjido has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
jjido has joined #zig
jjido has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<GitHub194> [zig] andrewrk pushed 1 new commit to master: https://git.io/vNfoB
<GitHub194> zig/master d008e20 Andrew Kelley: self-hosted compiler works on macos
jjido has joined #zig
arBmind has joined #zig
<GitHub6> [zig] andrewrk pushed 1 new commit to master: https://git.io/vNfDk
<GitHub6> zig/master 7e65fe7 Andrew Kelley: fix test regressions on windows from previous commit
ragge has joined #zig
jjido has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
jjido has joined #zig
jjido has quit [Read error: Connection reset by peer]
jjido has joined #zig