00:44
<
GitHub76 >
zig/master 5a800db Andrew Kelley: build: std files and c header files are only specified once...
01:12
minus has quit [Ping timeout: 240 seconds]
01:13
minus has joined #zig
02:03
Mentol has joined #zig
02:04
<
Mentol >
how to append an item to an array? is there any method for it?
02:04
<
andrewrk >
Mentol, an array has a compile time known size. You can concatenate arrays at compile time
02:04
<
andrewrk >
if you want to append items at runtime, I suggest looking at std.ArrayList
02:07
<
Mentol >
so, if I use 'var msg: [4][]u8' for an array of strings with max. length = 4
02:07
<
Mentol >
is possible to know which was the las position where there is a value?
02:08
<
Mentol >
to add a new value in the next one
02:08
<
andrewrk >
you could keep a separate index variable
02:08
<
andrewrk >
or you could make the type [4]?[]u8
02:08
<
Mentol >
for what is '?' ?
02:10
<
andrewrk >
you can initialize it all to null like this: [1]?[]u8{null} ** 4
02:11
<
andrewrk >
hm there is an error in those docs
02:12
<
GitHub166 >
zig/master 5c8600d Andrew Kelley: add december in review to reading material; fix docs
02:13
<
Mentol >
and where is the doc. about std.ArrayList?
02:14
<
andrewrk >
I am sorry, there is not yet published documentation for the standard library
02:14
<
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
02:14
<
Mentol >
don't worry; I'll look at the source code
02:15
<
andrewrk >
Mentol, at the bottom of thise file you can see example usage
02:22
<
Mentol >
is there any advantage at initialing an array with null values? [4][]u8 vs [4]?[u8]
02:31
Mentol has quit [Quit: Leaving]
02:33
<
GitHub153 >
zig/master 477e3f6 Andrew Kelley: self-hosted build: use llvm-config from stage1
03:03
<
andrewrk >
only if you want the concept of null
03:38
<
GitHub47 >
zig/master 0cd63b2 Andrew Kelley: fix self-hosted build on windows
04:03
arBmind1 has joined #zig
04:06
arBmind has quit [Ping timeout: 260 seconds]
08:44
arBmind1 has quit [Quit: Leaving.]
08:56
arBmind has joined #zig
08:59
arBmind1 has joined #zig
09:01
arBmind has quit [Ping timeout: 246 seconds]
09:02
cenomla has joined #zig
09:21
Mentol has joined #zig
09:25
cenomla has quit [Quit: cenomla]
09:25
cenomla has joined #zig
09:28
<
Mentol >
is there any type to handle strings? i.e. when a function has to return a string
09:29
<
Mentol >
or do you have to use [n]u8?
09:30
cenomla has quit [Ping timeout: 248 seconds]
09:35
<
Mentol >
and how to add text to a string?
09:38
Mentol has quit [Quit: Leaving]
09:39
sparrisable has joined #zig
09:40
<
sparrisable >
Thumbs up for the "Zig: December 2017 in Review", a great read for me.
15:34
sparrisable has quit [Quit: Page closed]
15:40
arBmind1 has quit [Quit: Leaving.]
16:03
arBmind has joined #zig
16:08
arBmind has quit [Ping timeout: 268 seconds]
17:34
Tobba has joined #zig
18:06
alandipert has quit [Quit: Ping timeout (120 seconds)]
18:07
alandipert has joined #zig
18:51
<
GitHub84 >
zig/master e1c03d9 Andrew Kelley: self-hosted compiler works on windows...
18:52
jjido has joined #zig
18:53
skyfex has joined #zig
18:58
skyfex has quit [Ping timeout: 260 seconds]
19:30
jjido has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
19:50
jjido has joined #zig
19:56
jjido has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
20:31
<
GitHub194 >
zig/master d008e20 Andrew Kelley: self-hosted compiler works on macos
20:56
jjido has joined #zig
21:11
arBmind has joined #zig
21:37
<
GitHub6 >
zig/master 7e65fe7 Andrew Kelley: fix test regressions on windows from previous commit
21:39
ragge has joined #zig
21:53
jjido has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
22:09
jjido has joined #zig
22:20
jjido has quit [Read error: Connection reset by peer]
22:21
jjido has joined #zig