Perl 6 - the future is here, just unevenly distributed

IRC log for #parrot, 2014-04-25

Parrot | source cross referenced

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

All times shown according to UTC.

Time Nick Message
01:07 woosley joined #parrot
01:18 FROGGS_ joined #parrot
01:58 basiliscos joined #parrot
02:21 plobsing joined #parrot
04:30 Psyche^ joined #parrot
06:46 FROGGS joined #parrot
07:59 cxreg joined #parrot
08:45 Tene joined #parrot
09:03 basiliscos joined #parrot
14:16 bluescreen joined #parrot
15:42 bluescreen_ joined #parrot
16:12 FROGGS joined #parrot
17:53 Chirag joined #parrot
18:03 benabik joined #parrot
18:11 Chirag rurban: Hey!
18:14 rurban Hey
18:15 Chirag I came across VTABLE_elements (INTERP, array) in arrayiterator .. I am assuming this method/macro is different from VTABLE INTVAL elements() or is it?? I cant find its definition anywhere..
18:17 rurban This is calling the VTABLE method elements on the arrayiterator object. When you derive from the arrayiterator class it would call the arrayiterator.elements method, if the derived class does not have it's own elements method.
18:18 Chirag but elements() does not take any arguments..
18:19 rurban I've set it to :no_wb but on further consideration SELF attributes are changed depending on the array PMC so I guess the :no_wb attribute is wrong. the WB should be added automatically at the end
18:20 rurban array is SELF
18:20 rurban every vtable method has at least 2 args, interp and self
18:22 Chirag The definition for VTABLE INTVAL elements() gave me an impression that it takes no args
18:22 rurban because in our pmc files we skip the first 2 default args and let the pmc2c compiler do that
18:23 Chirag ohk.. got it now ..  that would give set_integer_native() manual_wb
18:23 Chirag because it calls VTABLE_elements
18:23 rurban no, since it's void it's easier to let pmc2c add the WB
18:23 rurban there's no return to consider
18:24 Chirag oh
18:24 rurban but you can also add the WB manually at the end
18:25 rurban I think the WB is needed here, even we do not create a new PMC. But I'm not sure. Could be a :no_wb also
18:26 Chirag i was putting it becuse it was making a call to elements() which has a WB .. so it implied a hidden WB .. hence the attribute manual_wb
18:27 Chirag but if I consider a void return then maybe I should put no_wb
18:27 rurban no, not needed when calling other VTABLE methods. only when it's hidden in macros
18:28 Chirag alright!
18:28 Chirag understood
20:31 Chirag I have added WBs for - ArrayIterator, CallContext, Key, Task
20:31 Chirag I will try to finish the remaining over the weekend...
20:32 Chirag Bye! :)
20:54 stryx` joined #parrot
21:15 basiliscos joined #parrot
21:30 bluescreen_ joined #parrot

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

Parrot | source cross referenced