Maybe a given block then? I generally go for brute force first.
On Sat, 28 Oct 2017, 9:21 pm Fernando Santagata,
wrote:
> Yes, the size of the object would change. In any case, I can't use a Perl6
> Array in a NativeCall class, so the point is moot.
>
> The problem is that that C library exposes
Yes, the size of the object would change. In any case, I can't use a Perl6
Array in a NativeCall class, so the point is moot.
The problem is that that C library exposes an API, whose main structure
contains an array of five pointers to another kind of struct.
It is not a pointer to an array of poi
Ahhh.. H. Even with the array as a private variable?
On Sat, 28 Oct 2017, 8:41 pm Fernando Santagata,
wrote:
> Hello Simon,
> Thank you for your reply.
>
> I would use an array if I hadn't the constraint that in a NativeCall class
> I can't use a Perl6 Array, just a CArray.
> Anyway I couldn
Hello Simon,
Thank you for your reply.
I would use an array if I hadn't the constraint that in a NativeCall class
I can't use a Perl6 Array, just a CArray.
Anyway I couldn't add a CArray to the class, because it would change its
size and I need to pass the reference to that class to a C function.
On Sat, 28 Oct 2017 01:09:59 -0700, mt1...@gmail.com wrote:
> Hi @Zoffix Znet
>
> Do you have any pointers or howto's to write thread-save code?
> Otherwise
> I'd remove all of the promises. It gave some other problems in the
> past.
> Regards
> Marcel
> > On Thu, 26 Oct 2017 06:04:51 -0700, alex.
On Sat, 28 Oct 2017 01:09:59 -0700, mt1...@gmail.com wrote:
> Hi @Zoffix Znet
>
> Do you have any pointers or howto's to write thread-save code?
> Otherwise
> I'd remove all of the promises. It gave some other problems in the
> past.
> Regards
> Marcel
> > On Thu, 26 Oct 2017 06:04:51 -0700, alex.
Here's my very naive way of doing it.
class A does Positional {
has $.a0 is rw;
has $.a1 is rw;
has $.a2 is rw;
has $.a3 is rw;
has $.a4 is rw;
has $.a5 is rw;
has @!arr;
method TWEAK {
@!arr[0] := $.a0;
@!arr[1] := $.a1;
@!a
Hello,
I was trying to write a NativeCall interface to a C library, but I stumbled
upon a problem (
https://stackoverflow.com/questions/44266457/array-of-structs-as-an-attribute-of-a-perl-6-nativecall-struct
).
The best way to solve that problem would be to add a new keyword to the
NativeCall modu
Hi @Zoffix Znet
Do you have any pointers or howto's to write thread-save code? Otherwise
I'd remove all of the promises. It gave some other problems in the past.
Regards
Marcel
> On Thu, 26 Oct 2017 06:04:51 -0700, alex.jakime...@gmail.com wrote:
>> FWIW, when toasting I observed double free or c
Hi @Zoffix Znet
Do you have any pointers or howto's to write thread-save code? Otherwise
I'd remove all of the promises. It gave some other problems in the past.
Regards
Marcel
On Thu, 26 Oct 2017 06:04:51 -0700, alex.jakime...@gmail.com wrote:
FWIW, when toasting I observed double free or co
On 10/27/2017 09:35 PM, ToddAndMargo wrote:
Hi All,
With the help of Geekosaur over on the chat line, I fixed
my Pause.pm6 module. I came across a computer where the
module froze the terminal. Now it is fixed. I stood on
the shoulders of giants! Love the chat line!
Geekosaur found and repor
11 matches
Mail list logo