00:06
kjs_ joined
|
|||
raydiak | turns out it's giving me the array's contents instead of a pointer to it :) just not sure yet precisely where it's going wrong | 00:48 | |
01:09
FROGGS joined
02:21
lizmat joined
02:35
colomon joined
03:08
colomon joined
|
|||
raydiak | would someone kindly elucidate the '*(void **)ptr' idiom for me? it's hard to google :P | 03:09 | |
japhb | raydiak: The variable 'ptr' is actually a pointer to a pointer. So dereference the first level of pointer to retrieve the inner pointer. | 03:28 | |
This is often used to allow you to pass a pointer into a function and let the function change it. So you pass in a pointer to the pointer, and the function does *(void **)ptr = ... | 03:29 | ||
And then the calling function can see the change. | 03:30 | ||
raydiak | hm...well...this is what breaks my carray csting patch: github.com/MoarVM/MoarVM/commit/b6...f3bebac730 | 03:31 | |
*casting | |||
so I guess it makes sense, b/c I'm ending up with the array contents instead of a pointer to it | 03:32 | ||
but I don't see how that commit I just pasted should even work without other changes elsewhere...???... | 03:34 | ||
japhb | I'm guessing that it originally did not match the code elsewhere, and this fix brought it in line with that other code. | 03:35 | |
raydiak | ah | ||
but we don't have that extra level of indirection in the case of arrays? | 03:36 | ||
I guess I'll have to read more now that I kinda understand | |||
japhb | I don't actually know that section of code well; I'm just interpreting the evidence. ;-) | ||
raydiak | I appreciate the guidance :) | 03:37 | |
03:45
vendethiel joined
04:15
vendethiel joined
04:32
woolfy joined
04:35
woolfy joined
04:43
vendethiel joined
05:39
vendethiel joined
05:48
woolfy joined
05:53
woolfy joined
06:39
vendethiel joined
06:48
woolfy left
06:51
FROGGS[mobile] joined
07:02
vendethiel joined
09:12
tgt joined
09:23
vendethiel joined
09:30
FROGGS joined
09:38
rurban_ joined
09:40
kjs_ joined
|
|||
JimmyZ | rurban_: in case of you missing it : irclog.perlgeek.de/moarvm/2015-01-30#i_10032597 | 09:40 | |
rurban_ | Yes, I know | 09:57 | |
thanks | |||
10:37
kjs_ joined
10:38
kjs_ joined
14:37
harrow joined
15:17
harrow joined
15:19
oetiker joined
15:25
FROGGS joined
16:00
brrt joined
16:26
brrt joined
16:55
btyler joined
17:01
harrow joined
17:27
kjs_ joined
17:38
woolfy joined,
woolfy left
17:52
colomon joined
17:58
rurban joined
18:08
colomon joined
18:29
colomon joined
19:38
zakharyas joined
19:44
kjs_ joined
20:34
rurban joined
20:53
kjs_ joined
21:41
FROGGS joined
21:42
Util joined
23:28
vendethiel- joined
23:39
kjs_ joined
23:42
nwc10_ joined
23:43
synopsebot joined
23:45
jnthn joined
23:47
retupmoc1 joined
|