Re: an error I don't understand

2020-07-01 Thread Marcel Timmerman
Solved! It had something to do with having an installed version and testing a program using a partly changed local version (renames of files too) and partly the installed version. This caused the same type from several sources and thereby making them differ. Removing the installed versions cl

Re: an error I don't understand

2020-06-27 Thread Marcel Timmerman
Hi Brad, I don't know why you are getting an error. But I think that this is one case where you should be writing `BUILD` instead of `TWEAK`. Note though that you can only have one `BUILD` or `TWEAK` per class. A quick test showed to me that it doesn't matter if I use BUILD or TWEAK. Besides

Re: an error I don't understand

2020-06-27 Thread Brad Gilbert
I don't know why you are getting an error. But I think that this is one case where you should be writing `BUILD` instead of `TWEAK`. Note though that you can only have one `BUILD` or `TWEAK` per class. --- Or maybe you want a multi method `new` instead? multi method new ( :$native-object! )

an error I don't understand

2020-06-27 Thread Marcel Timmerman
Hi, I am getting an error and don't know why it happens, it might even be a bug. It is about an assignment to a CStruct variable. The structure is defined like; class cairo_path_data_point_t is repr('CStruct') is export {   has num64 $.x;   has num64 $.y;   submethod TWEAK ( :$native-object