Perl 6 - the future is here, just unevenly distributed

IRC log for #moarvm, 2015-01-31

| Channels | #moarvm index | Today | | Search | Google Search | Plain-Text | summary

All times shown according to UTC.

Time Nick Message
00:06 kjs_ joined #moarvm
00:48 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
01:09 FROGGS joined #moarvm
02:21 lizmat joined #moarvm
02:35 colomon joined #moarvm
03:08 colomon joined #moarvm
03:09 raydiak would someone kindly elucidate the '*(void **)ptr' idiom for me? it's hard to google :P
03:28 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:29 japhb 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:30 japhb And then the calling function can see the change.
03:31 raydiak hm...well...this is what breaks my carray csting patch: https://github.com/MoarVM/MoarVM/commit/b6f6b29eeac369b9f8fcb0d761fea0f3bebac730
03:31 raydiak *casting
03:32 raydiak so I guess it makes sense, b/c I'm ending up with the array contents instead of a pointer to it
03:34 raydiak but I don't see how that commit I just pasted should even work without other changes elsewhere...???...
03:35 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
03:36 raydiak but we don't have that extra level of indirection in the case of arrays?
03:36 raydiak I guess I'll have to read more now that I kinda understand
03:36 japhb I don't actually know that section of code well; I'm just interpreting the evidence.  ;-)
03:37 raydiak I appreciate the guidance :)
03:45 vendethiel joined #moarvm
04:15 vendethiel joined #moarvm
04:32 woolfy joined #moarvm
04:35 woolfy joined #moarvm
04:43 vendethiel joined #moarvm
05:39 vendethiel joined #moarvm
05:48 woolfy joined #moarvm
05:53 woolfy joined #moarvm
06:39 vendethiel joined #moarvm
06:48 woolfy left #moarvm
06:51 FROGGS[mobile] joined #moarvm
07:02 vendethiel joined #moarvm
09:12 tgt joined #moarvm
09:23 vendethiel joined #moarvm
09:30 FROGGS joined #moarvm
09:38 rurban_ joined #moarvm
09:40 kjs_ joined #moarvm
09:40 JimmyZ rurban_: in case of you missing it : http://irclog.perlgeek.de/moarvm/2015-01-30#i_10032597
09:57 rurban_ Yes, I know
09:57 rurban_ thanks
10:37 kjs_ joined #moarvm
10:38 kjs_ joined #moarvm
14:37 harrow joined #moarvm
15:17 harrow joined #moarvm
15:19 oetiker joined #moarvm
15:25 FROGGS joined #moarvm
16:00 brrt joined #moarvm
16:26 brrt joined #moarvm
16:55 btyler joined #moarvm
17:01 harrow joined #moarvm
17:27 kjs_ joined #moarvm
17:38 woolfy joined #moarvm
17:38 woolfy left #moarvm
17:52 colomon joined #moarvm
17:58 rurban joined #moarvm
18:08 colomon joined #moarvm
18:29 colomon joined #moarvm
19:38 zakharyas joined #moarvm
19:44 kjs_ joined #moarvm
20:34 rurban joined #moarvm
20:53 kjs_ joined #moarvm
21:41 FROGGS joined #moarvm
21:42 Util joined #moarvm
23:28 vendethiel- joined #moarvm
23:39 kjs_ joined #moarvm
23:42 nwc10_ joined #moarvm
23:43 synopsebot joined #moarvm
23:45 jnthn joined #moarvm
23:47 retupmoc1 joined #moarvm

| Channels | #moarvm index | Today | | Search | Google Search | Plain-Text | summary