[NOTICE] Main Development Branch Renamed from “nom” to “master”

2017-10-28 Thread zoffix
If you track latest rakudo changes by means of a local checkout of the development repository, please take notice that we renamed our unusually-named main development branch from nom to the more traditional name master See http://rakudo.org/2017/10/27/main-development-branch-renamed-fro

Re: Forcing a Positional role

2017-10-28 Thread Simon Proctor
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

Re: Forcing a Positional role

2017-10-28 Thread Fernando Santagata
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

Re: Forcing a Positional role

2017-10-28 Thread Simon Proctor
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

Re: Forcing a Positional role

2017-10-28 Thread Fernando Santagata
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.

Re: Forcing a Positional role

2017-10-28 Thread Simon Proctor
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

Forcing a Positional role

2017-10-28 Thread Fernando Santagata
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

Re: my Pause.pm6 updated

2017-10-28 Thread ToddAndMargo
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