Re: my first two doc issues

2020-01-20 Thread Philip Hazelden
On Tue, Jan 21, 2020, 12:16 AM ToddAndMargo via perl6-users < perl6-users@perl.org> wrote: They did not give me > the link to report it. > JJ's very first comment: "You would probably want to raise this issue in the zef repo itself ." The words "zef repo itself" are

Re: My Windows Modules

2020-01-20 Thread ToddAndMargo via perl6-users
Hi All, I have my Win API modules to the point I like them now. I will be a few months before I get them up on GIT. If anyone wants to look at them now, I will vpaste.net them for you. :-) -T

Re: I need syntax to sub declare return a hash and an array

2020-01-20 Thread ToddAndMargo via perl6-users
On 2020-01-20 20:36, 浪花城主 wrote: How about returning a reference? Just for test (sorry I have no perl6 installed on local device): $ perl -le 'sub x {%hash=(1,2,3,4);\%hash}; print x->{1}' 2 Regards. Hi 浪花城主, No Perl6 installed I am Heart Broken!!! Why! Why! KIDS THESE DAYS!! :-)

Re: I need syntax to sub declare return a hash and an array

2020-01-20 Thread 浪花城主
How about returning a reference? Just for test (sorry I have no perl6 installed on local device): $ perl -le 'sub x {%hash=(1,2,3,4);\%hash}; print x->{1}' 2 Regards. On Tue, Jan 21, 2020 at 11:56 AM ToddAndMargo via perl6-users < perl6-users@perl.org> wrote: > Hi All, > > What is the proper

Re: I need syntax to sub declare return a hash and an array

2020-01-20 Thread ToddAndMargo via perl6-users
On 2020-01-20 20:09, ToddAndMargo via perl6-users wrote: On 2020-01-20 19:55, ToddAndMargo via perl6-users wrote: Hi All, What is the proper way to state that I am returning a hash from a sub?   `sub x() returns % {}` And an array?  `sub x() returns @ {}` Many thanks, -T I think this is

Re: I need syntax to sub declare return a hash and an array

2020-01-20 Thread ToddAndMargo via perl6-users
On 2020-01-20 19:55, ToddAndMargo via perl6-users wrote: Hi All, What is the proper way to state that I am returning a hash from a sub?   `sub x() returns % {}` And an array?  `sub x() returns @ {}` Many thanks, -T I think this is it: > sub x() returns Associative { my %h= A=>"a"; return

I need syntax to sub declare return a hash and an array

2020-01-20 Thread ToddAndMargo via perl6-users
Hi All, What is the proper way to state that I am returning a hash from a sub? `sub x() returns % {}` And an array? `sub x() returns @ {}` Many thanks, -T

Re: Rough first draft of Native Call WinAPI

2020-01-20 Thread ToddAndMargo via perl6-users
On 2020-01-20 19:30, 浪花城主 wrote: Hi ToddAndMargo I would like to see that. Thanks. On Tue, Jan 21, 2020 at 10:59 AM ToddAndMargo via perl6-users mailto:perl6-users@perl.org>> wrote: Hi All, I have a first rough draft of my "T’s Reference on Raku’s NativeCall and Win API calls"

Re: Rough first draft of Native Call WinAPI

2020-01-20 Thread 浪花城主
Hi ToddAndMargo I would like to see that. Thanks. On Tue, Jan 21, 2020 at 10:59 AM ToddAndMargo via perl6-users < perl6-users@perl.org> wrote: > Hi All, > > I have a first rough draft of my "T’s Reference on > Raku’s NativeCall and Win API calls" ready > to go. > > If you are interested, I will

Rough first draft of Native Call WinAPI

2020-01-20 Thread ToddAndMargo via perl6-users
Hi All, I have a first rough draft of my "T’s Reference on Raku’s NativeCall and Win API calls" ready to go. If you are interested, I will eMail it to you. It is in Open Document Text (ODT) format (Libre Office). I would love a good peer review. -T

Re: Using raku/perl6 as unix "cat"....

2020-01-20 Thread Elizabeth Mattijsen
> On 21 Jan 2020, at 01:01, Norman Gaywood wrote: > On Tue, 21 Jan 2020 at 03:12, Brad Gilbert wrote: > .say for lines > > Since .say calls gist(), would it be not be better/safer to call .put instead? > >.put for lines Since lines only produces Str objects, and both Str.Str and

Re: my first two doc issues

2020-01-20 Thread ToddAndMargo via perl6-users
On 2020-01-20 16:02, Philip Hazelden wrote: On Mon, Jan 20, 2020, 11:48 PM ToddAndMargo via perl6-users mailto:perl6-users@perl.org>> wrote: On 2020-01-20 15:23, Philip Hazelden wrote: > Since you continue to insult the maintainers, What a bunch of crap!  It was only one

Re: Using raku/perl6 as unix "cat"....

2020-01-20 Thread Trey Harris
On Mon, Jan 20, 2020 at 19:03 Trey Harris wrote: > On Mon, Jan 20, 2020 at 02:59 William Michels via perl6-users < > perl6-users@perl.org> wrote: > >> Hi Yary (and Todd), >> >> Thank you both for your responses. Yary, the problem seems to be with >> "get". I can change 'while' to 'for' below,

Re: Using raku/perl6 as unix "cat"....

2020-01-20 Thread Trey Harris
On Mon, Jan 20, 2020 at 19:01 Norman Gaywood wrote: > > On Tue, 21 Jan 2020 at 03:12, Brad Gilbert wrote: > >> .say for lines >> > > Since .say calls gist(), would it be not be better/safer to call .put > instead? > >.put for lines > If being set directly from `lines`, I can’t see when

Re: Using raku/perl6 as unix "cat"....

2020-01-20 Thread Trey Harris
On Mon, Jan 20, 2020 at 02:59 William Michels via perl6-users < perl6-users@perl.org> wrote: > Hi Yary (and Todd), > > Thank you both for your responses. Yary, the problem seems to be with > "get". I can change 'while' to 'for' below, but using 'get' raku/perl6 > actually returns fewer lines with

Re: my first two doc issues

2020-01-20 Thread Philip Hazelden
On Mon, Jan 20, 2020, 11:48 PM ToddAndMargo via perl6-users < perl6-users@perl.org> wrote: > On 2020-01-20 15:23, Philip Hazelden wrote: > > Since you continue to insult the maintainers, > > What a bunch of crap! It was only one person > and I don't think he meant any harm. > I never said you

Re: Using raku/perl6 as unix "cat"....

2020-01-20 Thread Norman Gaywood
On Tue, 21 Jan 2020 at 03:12, Brad Gilbert wrote: > .say for lines > Since .say calls gist(), would it be not be better/safer to call .put instead? .put for lines -- Norman Gaywood, Computer Systems Officer School of Science and Technology University of New England Armidale NSW 2351,

Re: my first two doc issues

2020-01-20 Thread ToddAndMargo via perl6-users
On 2020-01-20 15:23, Philip Hazelden wrote: Since you continue to insult the maintainers, What a bunch of crap! It was only one person and I don't think he meant any harm. And if you had actually read the link, you would have found that its was a "maintainer" I am suppose to be dissing that

Re: my first two doc issues

2020-01-20 Thread Philip Hazelden
Since you continue to insult the maintainers, I will step in to defend them: the response you got to 145 was perfectly reasonable. You were told that you opened it in the wrong place, which you argued with, and you were told where you should have opened it instead, which you ignored. The problem

Re: troubles with with base(2)

2020-01-20 Thread ToddAndMargo via perl6-users
On 2020-01-20 14:17, Tobias Boege wrote: This is a truly beautiful and thoughtful thing about Raku. The more I learn about Raku, the more it astounds me. It is so well thought out, it is mesmerizing. :-)

Re: non modal dialog?

2020-01-20 Thread ToddAndMargo via perl6-users
On 2020-01-20 13:08, ToddAndMargo via perl6-users wrote: Hi All, Is there a way to create a "non modal dialog" in Raku for Windows? Many thanks, -T One of the guys on the WinApi group gave me this: Any idea how I do this is Raku? -T c++: #include #include #include EXTERN_C int

Re: troubles with with base(2)

2020-01-20 Thread ToddAndMargo via perl6-users
On 2020-01-20 14:17, Tobias Boege wrote: ^ is a junction constructor, specifically it creates a one() junction. If you want bitwise XOR use the... bitwise XOR operator +^. I left off the +. Mumble, mumble :'(

Re: troubles with with base(2)

2020-01-20 Thread ToddAndMargo via perl6-users
On Mon, Jan 20, 2020 at 3:57 PM ToddAndMargo via perl6-users mailto:perl6-users@perl.org>> wrote: Hi All, Now what am I doing wrong? my $v = 0b00101101 ^ 0b1001; say $v.base(2); one(101101, 1001) It should be 100100 Many thanks, -T

Re: troubles with with base(2)

2020-01-20 Thread Brad Gilbert
Why would you think that? The numeric binary xor operator is +^. my $v = 0b00101101 +^ 0b1001; say $v.base(2); # 100100 ^ is the junctive xor operator. my $v = 1 ^ 2 ^ 'a'; $v eq 'a'; # True $v == 1; # True $v == 2; # True $v == 3; # False There is also the stringy

Re: troubles with with base(2)

2020-01-20 Thread Tobias Boege
On Mon, 20 Jan 2020, ToddAndMargo via perl6-users wrote: > Hi All, > > Now what am I doing wrong? > > my $v = 0b00101101 ^ 0b1001; say $v.base(2); > one(101101, 1001) > > It should be > 100100 > Please examine the output you get. Does the spurious "one" in there not make you

troubles with with base(2)

2020-01-20 Thread ToddAndMargo via perl6-users
Hi All, Now what am I doing wrong? my $v = 0b00101101 ^ 0b1001; say $v.base(2); one(101101, 1001) It should be 100100 Many thanks, -T

Re: definition confusion of + and +^

2020-01-20 Thread ToddAndMargo via perl6-users
On 2020-01-20 08:32, Peter Pentchev wrote: On Sun, Jan 19, 2020 at 08:25:15PM -0800, ToddAndMargo via perl6-users wrote: One last question on htis. What does multi sub prefix:<+^>(Any --> Int:D) Mean. Prefix means before. +^(Any) get me a participation trophy, so I do not understand. :'(

non modal dialog?

2020-01-20 Thread ToddAndMargo via perl6-users
Hi All, Is there a way to create a "non modal dialog" in Raku for Windows? Many thanks, -T

Re: my first two doc issues

2020-01-20 Thread ToddAndMargo via perl6-users
On 2020-01-19 15:09, Tobias Boege wrote: On Sun, 19 Jan 2020, ToddAndMargo via perl6-users wrote: RFE: Please add the following examples to routine +^ https://github.com/Raku/doc/issues/3177 Now I wait and see what kind of reception I get. It will be nice to contribute to the docs, rather

Re: Ping JJ: string literals

2020-01-20 Thread Peter Pentchev
On Sun, Jan 19, 2020 at 12:20:18AM -0500, Paul Procacci wrote: > On Sun, Jan 19, 2020 at 12:12 AM yary wrote: > > > In UTF-16 every character is 16 bits, so all 8 bits of zeros tells you is > > that it's possibly a big-endian ascii character or a little-endian > > non-ascii character at a

Re: definition confusion of + and +^

2020-01-20 Thread Peter Pentchev
On Sun, Jan 19, 2020 at 08:25:15PM -0800, ToddAndMargo via perl6-users wrote: > One last question on htis. What does > > multi sub prefix:<+^>(Any --> Int:D) > > Mean. Prefix means before. +^(Any) get > me a participation trophy, so I do not > understand. > > > :'( > > INQUIRING MINDS WANT

Re: Using raku/perl6 as unix "cat"....

2020-01-20 Thread Brad Gilbert
.say for lines On Mon, Jan 20, 2020 at 1:59 AM William Michels via perl6-users < perl6-users@perl.org> wrote: > Hi Yary (and Todd), > > Thank you both for your responses. Yary, the problem seems to be with > "get". I can change 'while' to 'for' below, but using 'get' raku/perl6 > actually