Re: implicit type change

2019-12-08 Thread Elizabeth Mattijsen
Yes, please. > On 8 Dec 2019, at 20:48, Marcel Timmerman wrote: > > Hi Elizabeth, > > Shall I file a bug report then? > >> I hoped that: >> >> $ 6 'use NativeCall; dd my CArray[uint8] $ba .= new( 255, 254, 3, 4); dd >> $ba[0..*-1]' >> CArray[uint8] $ba = NativeCall::Types::CArray[uint8].

Re: implicit type change

2019-12-08 Thread Marcel Timmerman
Hi Elizabeth, Shall I file a bug report then? I hoped that: $ 6 'use NativeCall; dd my CArray[uint8] $ba .= new( 255, 254, 3, 4); dd $ba[0..*-1]' CArray[uint8] $ba = NativeCall::Types::CArray[uint8].new (-1, -2, 3, 4).Seq would be a solution (usint "uint8" rather than "byte"), but a

Re: implicit type change

2019-12-08 Thread Marcel Timmerman
On 12/8/19 8:19 PM, Fernando Santagata wrote: It looks like a bug: the docs (https://docs.raku.org/language/nativetypes) specify that 'byte' and 'uint8' are the same and correspond to uint8_t in C. Substituting 'uint8' to 'byte' in your code returns the same result. Out of curiosity, if it is

Re: implicit type change

2019-12-08 Thread Elizabeth Mattijsen
I hoped that: $ 6 'use NativeCall; dd my CArray[uint8] $ba .= new( 255, 254, 3, 4); dd $ba[0..*-1]' CArray[uint8] $ba = NativeCall::Types::CArray[uint8].new (-1, -2, 3, 4).Seq would be a solution (usint "uint8" rather than "byte"), but alas, no, so this feels like a bug > On 8 Dec 2019,

Re: implicit type change

2019-12-08 Thread Fernando Santagata
It looks like a bug: the docs (https://docs.raku.org/language/nativetypes) specify that 'byte' and 'uint8' are the same and correspond to uint8_t in C. Substituting 'uint8' to 'byte' in your code returns the same result. Out of curiosity, if it is something meant for the public, what native call i