How to properly represent c++ class hiearchy in nativecall?

2016-07-24 Thread Vladimir Marek
Hi, I'm playing with QT library in perl6. I got it somehow working, but now I wonder whether I'm doing it right. QT objects are C++ classes. Roughly there is base class QObject. From that object QWidget isderived. class QObject; class QWidget : public QObject; class QAbstractButton : public QWid

Re: [perl #128628] problem using semaphore with many threads

2016-07-24 Thread mt1957
On 07/21/2016 02:52 PM, jn...@jnthn.net via RT wrote: On Fri Jul 15 12:32:30 2016, mt1...@gmail.com wrote: With Rakudo version 2016.06-234-g0189851 built on MoarVM version 2016.06-9-g8fc21d5 implementing Perl 6.c on a Asus laptop running Fedora 23 I see the following happen. Running the code bel

[perl #128720] [JVM] sink context consumes Seq generated by mutator method

2016-07-24 Thread via RT
# New Ticket Created by Christian Bartolomaeus # Please include the string: [perl #128720] # in the subject line of all future correspondence about this issue. # https://rt.perl.org/Ticket/Display.html?id=128720 > There are failing (skipped) tests for rakudo-j in S32-list/unique.t and S32-li

Re: How to properly represent c++ class hiearchy in nativecall?

2016-07-24 Thread Tobias Leich
Hi, the $.vtable Pointer is just there to allocate more space for the CPPStruct, and to properly align the struct attributes. C++ itself cares about the vtable, not NativeCall. What would help to fix any issues would be to prove a sample code in the style of the rakudo/t/04-nativecall/* tests

[perl #128726] Arrays and hashes don't parameterize inside role methods

2016-07-24 Thread via RT
# New Ticket Created by Faye # Please include the string: [perl #128726] # in the subject line of all future correspondence about this issue. # https://rt.perl.org/Ticket/Display.html?id=128726 > $ perl6 -e 'role A[::T = Numeric] { method B() { my T $a; say $a.WHAT } }; A.new.B' (Numeric) $