Re: rakudo.org outdated?

2020-01-06 Thread Patrick Spek via perl6-users
On Sun, 5 Jan 2020 18:27:01 -0800 Darren Duncan wrote: > The normal Rakudo Star releases so far are compiled, [...] For Mac and Windows, perhaps, but the release is similar as it always was for GNU+Linux. And I'm mostly aiming for that since that's what I use (and also what I can test). Hence,

Re: How to process command line options

2020-01-06 Thread Patrick Spek via perl6-users
On Sun, 5 Jan 2020 22:32:02 + David Santiago wrote: > Hello. > > I'm following > https://docs.raku.org/language/5to6-nutshell#Getopt::Long but i still > haven't figured it out how do i use a constraint in a named parameter > when processing a command line. > > I have this piece of code: >

Re: rakudo.org outdated?

2020-01-06 Thread Darren Duncan
On 2020-01-06 1:18 a.m., Patrick Spek via perl6-users wrote: On Sun, 5 Jan 2020 18:27:01 -0800 Darren Duncan wrote: The normal Rakudo Star releases so far are compiled, [...] For Mac and Windows, perhaps, but the release is similar as it always was for GNU+Linux. And I'm mostly aiming for

Re: How to process command line options

2020-01-06 Thread David Santiago
Thanks for the reply! That was the issue, the missing '=', and the order. I thought that because it was a named parameter the order wouldn't matter. Regarding the second question, on how to have the same switch multiple times, using a @ sigil doesn't work: Code: subset Layout of Str where * ~~

Re: How to process command line options

2020-01-06 Thread ToddAndMargo via perl6-users
On 2020-01-05 14:32, David Santiago wrote: Hello. I'm following https://docs.raku.org/language/5to6-nutshell#Getopt::Long but i still haven't figured it out how do i use a constraint in a named parameter when processing a command line. I have this piece of code: multi sub MAIN("apt",

Re: My Native Call notes

2020-01-06 Thread ToddAndMargo via perl6-users
On Mon, Jan 6, 2020, 09:01 ToddAndMargo via perl6-users mailto:perl6-users@perl.org>> wrote: On 2020-01-05 22:56, ToddAndMargo via perl6-users wrote: > do they rise to the level of actually helping others? I am afraid I am annoying more than helping On 2020-01-05 23:20, Veesh

Re: How do I assign values to CArray[WCHAR]?

2020-01-06 Thread ToddAndMargo via perl6-users
On 2020-01-06 22:02, ToddAndMargo via perl6-users wrote: Hi All, What am I doing wrong here?  How do I assign values to CArray[WCHAR]? I want $lpData[0] to be 0xABCD and $lpData[1] to be 0xEF12. > use NativeCall; Nil > constant WCHAR    := uint16; (uint16) This was the booboo. I forgot

How do I assign values to CArray[WCHAR]?

2020-01-06 Thread ToddAndMargo via perl6-users
Hi All, What am I doing wrong here? How do I assign values to CArray[WCHAR]? I want $lpData[0] to be 0xABCD and $lpData[1] to be 0xEF12. > use NativeCall; Nil > constant WCHAR:= uint16; (uint16) > my $ValueData = 0xABCDEF12; 2882400018 > my CArray[WCHAR] $lpData; (CArray[uint16]) >

How do I convert integer to cardinal on the fly?

2020-01-06 Thread ToddAndMargo via perl6-users
Hi All, What am I doing wrong here? > my int16 $x = 0xABCD; -21555 > say $x.base(16); -5433 > my uint16 $y = $x.uint16; No such method 'uint16' for invocant of type 'Int' in block at line 1 Many thanks, -T