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

2016-07-26 Thread Vladimir Marek
Ok, it all boils down to this: = a.h == #ifndef _A_H_ #define _A_H_ class A { public: int a(void); }; class B : public A { public: int b(void); }; #endif /* _A_H_ */ =

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

2016-07-25 Thread Vladimir Marek
nding on qt of course) I'm more than happy to do that, but I thought the presented errors are my misunderstanding of the language than actual problems. Thank you -- Vlad > > Cheers, Tobias > > Am 24.07.2016 um 09:03 schrieb Vladimir Marek: > >Hi, > >

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: Nativecall ability to set wheter given symbol is to be mangled or not

2016-07-13 Thread Vladimir Marek
> Could you please turn this into a PR on > https://github.com/rakudo/rakudo ? That would make it easier for more > people to look at and much easier to merge. Ah, at least it made me to learn git a bit. https://github.com/rakudo/rakudo/pull/826 Thank you -- Vlad

Nativecall ability to set wheter given symbol is to be mangled or not

2016-07-13 Thread Vladimir Marek
Hi, In order to play with perl I wanted to do a gui. I decided to try to bind qt libraries via nativecall[1]. Nativecall contains logic for g++ or msvc which tries to guess mangled name. I found that it does not work that well for qt libraries. Especially on windows the actual symbols are far from