Re: printf question

2020-02-09 Thread ToddAndMargo via perl6-users
On 2020-02-09 14:53, Paul Procacci wrote: subchdir(IO() $path, :$d=True, :$r, :$w, :$x-->IO::Path:D) Hi Paul, What I wanted to see is how something liek sub abcdefg( :$a, $b, :$c, :$e, $f, $g ) would be called -T

Re: printf question

2020-02-09 Thread ToddAndMargo via perl6-users
On 2020-02-08 15:39, Paul Procacci wrote: sub a(:$a, :$b, :$c) {} a(:c(1), :a(0), :b(3)); Hi Paul, I think I got it, but would yo give me one more exampale to make sure I fully understand? sub a(:$a, :$b, :$c) {} a(:c(1), :a(0), :b(3)); But with two that are not named and two that are

Re: printf question

2020-02-07 Thread ToddAndMargo via perl6-users
On Thu, Feb 6, 2020 at 11:43 AM ToddAndMargo via perl6-users mailto:perl6-users@perl.org>> wrote: On 2020-02-05 20:12, Paul Procacci wrote: > I wasn't going to follow up but decided to do so since there is a small > but subtle bug in my original post. >

Re: printf question

2020-02-06 Thread ToddAndMargo via perl6-users
On 2020-02-05 20:12, Paul Procacci wrote: I wasn't going to follow up but decided to do so since there is a small but subtle bug in my original post. I wouldn't want to mislead you Todd. The \d has been changed to [0..9] as the expected input would only ever be in that range.  (\d includes

Re: printf question

2020-02-05 Thread ToddAndMargo via perl6-users
contribution to your problem was sound. Take Care. On Wed, Feb 5, 2020 at 10:29 PM ToddAndMargo via perl6-users mailto:perl6-users@perl.org>> wrote: On 2020-02-03 13:51, ToddAndMargo via perl6-users wrote: > Hi All, > > Is ther a way to get >

Re: printf question

2020-02-05 Thread ToddAndMargo via perl6-users
On 2020-02-03 13:51, ToddAndMargo via perl6-users wrote: Hi All, Is ther a way to get $ p6 'my uint8 $u = 84; printf "\$u = <%08s>\n", $u;' $u = <0084> to print $u = <_0084> ? Many thanks, -T Hi All, Just to torment

Re: printf question

2020-02-05 Thread ToddAndMargo via perl6-users
On 2020-02-04 17:08, Paul Procacci wrote: The only thing that's wrong is that you didn't account for leading zero's. Your initial question has a type who's size is always 1 byte. However your second question, the one where 'something is wrong' requires more bits of information to hold the given

Re: printf question

2020-02-05 Thread ToddAndMargo via perl6-users
On 2020-02-04 02:49, Tom Browder wrote: On Tue, Feb 4, 2020 at 01:04 ToddAndMargo via perl6-users mailto:perl6-users@perl.org>> wrote: ... >>     Who do I get it to print >> >>           0b0100_ Look at my module Text::Utils and its "comm

Re: printf question

2020-02-03 Thread ToddAndMargo via perl6-users
On Mon, Feb 3, 2020 at 8:17 PM ToddAndMargo via perl6-users mailto:perl6-users@perl.org>> wrote: On 2020-02-03 13:51, ToddAndMargo via perl6-users wrote: > p6 'my uint8 $u = 84; printf "\$u = <%08s>\n", $u;' Oops, that should have been $ p6 'my uin

Re: printf question

2020-02-03 Thread ToddAndMargo via perl6-users
On 2020-02-03 13:51, ToddAndMargo via perl6-users wrote: p6 'my uint8 $u = 84; printf "\$u = <%08s>\n", $u;' Oops, that should have been $ p6 'my uint8 $u = 0x4F; printf "\$u = <%#b>\n", $u;' $u = <0b100> Who do I get it to print 0b0100_ ? -T

Re: bytes are used in an UInt/Int?

2020-02-03 Thread ToddAndMargo via perl6-users
On 2020-02-03 16:35, Tobias Boege wrote: On Mon, 03 Feb 2020, ToddAndMargo via perl6-users wrote: Hi All, Did Larry put a sneaky way to tell how many bytes a UInt/Int is using? The number of bits required to store an Int is, for positive numbers, the same as the index of their most

bytes are used in an UInt/Int?

2020-02-03 Thread ToddAndMargo via perl6-users
Hi All, Did Larry put a sneaky way to tell how many bytes a UInt/Int is using? Many thanks, -T

Re: stolen uint's

2020-02-03 Thread ToddAndMargo via perl6-users
On 2020-01-30 17:20, Veesh Goldman wrote: Hi Todd, A couple of things. One is that Int and int are totally unrelated concepts. Captial Int is a high level concept, which has a type constraint related to it, and belongs to raku's object system. Lowercase int is a special case, it's only for

Re: printf question

2020-02-03 Thread ToddAndMargo via perl6-users
On Mon, Feb 3, 2020 at 3:52 PM ToddAndMargo via perl6-users mailto:perl6-users@perl.org>> wrote: Hi All, Is ther a way to get $ p6 'my uint8 $u = 84; printf "\$u = <%08s>\n", $u;' $u = <0084> to print $u = <_0084> ?

printf question

2020-02-03 Thread ToddAndMargo via perl6-users
Hi All, Is ther a way to get $ p6 'my uint8 $u = 84; printf "\$u = <%08s>\n", $u;' $u = <0084> to print $u = <_0084> ? Many thanks, -T

Re: perl6 with XS

2020-02-03 Thread ToddAndMargo via perl6-users
> On Mon, Feb 3, 2020 at 12:41 AM Darren Duncan > wrote: > > Raku has the Native Call interface > https://docs.raku.org/language/nativecall > which is what you use instead. -- Darren Duncan > > On 2020-02-02 6:36 p.m., wes park wrote: > > HI >

Re: stolen uint's

2020-01-30 Thread ToddAndMargo via perl6-users
On 2020-01-30 08:11, Andy Bach wrote: I’m STILL waiting for you to show me ONE example of a `uint` turning into `int`. Not `Int`, via auto-boxing, `int`, via who-knows-what. $ p6 'my uint8 $u; say $u.^name;' Int Did you not notice the capital "I" in both his request and your code output?

Re: stolen uint's

2020-01-29 Thread ToddAndMargo via perl6-users
On 2020-01-29 17:45, Trey Harris wrote: On Wed, Jan 29, 2020 at 20:20 ToddAndMargo via perl6-users mailto:perl6-users@perl.org>> wrote: On 2020-01-29 10:28, Trey Harris wrote: > B is not a subset of A. That is the relationship of uint and int—two > distinct types

Re: stolen uint's

2020-01-29 Thread ToddAndMargo via perl6-users
On 2020-01-29 10:28, Trey Harris wrote: B is not a subset of A. That is the relationship of uint and int—two distinct types whose values happen to overlap in a way that describes a subset. Perl isn’t Prolog; a logical relationship between two types is not a first-class entity of the language.

Re: stolen uint's

2020-01-29 Thread ToddAndMargo via perl6-users
On 2020-01-28 18:50, ToddAndMargo via perl6-users wrote: This all came up when I tried to match   RegSetValueExW( _In_ HKEY hKey, _In_opt_ LPCWSTR lpValueName, _Reserved_ DWORD Reserved, _In_ DWORD dwType, _In_reads_bytes_opt_(cbData) CONST BYTE * lpData, _In_ DWORD cbData where CbData

Re: stolen uint's

2020-01-29 Thread ToddAndMargo via perl6-users
On 2020-01-29 16:00, Trey Harris wrote: where CbData can either be a UTF little endian C string, I understand now. I typo'ed cbData. That should have been lpData. :'(

Re: stolen uint's

2020-01-29 Thread ToddAndMargo via perl6-users
On 2020-01-29 15:32, ToddAndMargo via perl6-users wrote: `DWORD cbData` cbData is a 32 bit unsigned integer. It follows all the rules for unsigned integers. You do not terminate it. WinAPI knows it is 32 bits long. lpData (Long Pointer Data) is where you put the 0x at the end, if you

Re: stolen uint's

2020-01-29 Thread ToddAndMargo via perl6-users
On 2020-01-29 15:22, Trey Harris wrote: On Wed, Jan 29, 2020 at 17:52 ToddAndMargo via perl6-users mailto:perl6-users@perl.org>> wrote: On 2020-01-29 14:20, Trey Harris wrote: > I don’t care about IpData or ValueData—those are completely unremarkable > fields

Re: stolen uint's

2020-01-29 Thread ToddAndMargo via perl6-users
On 2020-01-29 14:20, Trey Harris wrote: I don’t care about IpData or ValueData—those are completely unremarkable fields. Showing me more code relating to them—or any other fields besides cData—isn’t helpful to understanding how the 3-bytes UTF + null cData field works. hi Trey, I think what

Re: stolen uint's

2020-01-29 Thread ToddAndMargo via perl6-users
Widows Chuckle. You should see how I typo `shutdown`. The "i" and the "u" are a little too close to each other. -- ~~ When you say, "I wrote a program that crashed Windows," people just stare at you blankly and say, "Hey, I got those with the system, for

Re: stolen uint's

2020-01-29 Thread ToddAndMargo via perl6-users
On 2020-01-29 13:01, Trey Harris wrote: On Wed, Jan 29, 2020 at 15:28 ToddAndMargo via perl6-users mailto:perl6-users@perl.org>> wrote: "Todd" would convert to      84 00 111 00 100 00 100 00 00 00 I’m sorry, you misunderstood me. I wasn’t asking how to convert t

Re: stolen uint's

2020-01-29 Thread ToddAndMargo via perl6-users
On 2020-01-29 11:36, Trey Harris wrote: On Wed, Jan 29, 2020 at 14:01 ToddAndMargo via perl6-users mailto:perl6-users@perl.org>> wrote: On 2020-01-29 06:34, Trey Harris wrote: > I was going to ask about that (but it seemed out of Raku-world, and I > don’t even

Re: stolen uint's

2020-01-29 Thread ToddAndMargo via perl6-users
On 2020-01-29 11:32, Trey Harris wrote: On Wed, Jan 29, 2020 at 13:50 ToddAndMargo via perl6-users mailto:perl6-users@perl.org>> wrote: Why don't use use typeMappings[type_index( typeid(char) )] = "char"; Finally, a definition I can work with... We can treat t

Re: stolen uint's

2020-01-29 Thread ToddAndMargo via perl6-users
On 2020-01-29 11:17, William Michels via perl6-users wrote: "I am not posting it here as it is several hundred lines long and then I'd get the finger wagged at me. Everything is spread across several modules." On the contrary, this email list is the perfect place to put up nascent Raku/Perl6

Re: stolen uint's

2020-01-29 Thread ToddAndMargo via perl6-users
On 2020-01-29 10:58, Tom Browder wrote: On Wed, Jan 29, 2020 at 12:34 PM ToddAndMargo via perl6-users wrote: On 2020-01-29 00:43, Tobias Boege wrote: On Tue, 28 Jan 2020, ToddAndMargo via perl6-users wrote: This all came up when I tried to match ... if $ValueData.^name ne &quo

Re: stolen uint's

2020-01-29 Thread ToddAndMargo via perl6-users
On 2020-01-29 06:34, Trey Harris wrote: I was going to ask about that (but it seemed out of Raku-world, and I don’t even play someone who knows about Windows on TV), but, okay, I’ll bite... what are some examples of the precisely 3-byte + 32-bit null UTF strings you imagine being encoded by

Re: stolen uint's

2020-01-29 Thread ToddAndMargo via perl6-users
On 2020-01-28 17:00, Trey Harris wrote: On Tue, Jan 28, 2020 at 19:58 ToddAndMargo via perl6-users mailto:perl6-users@perl.org>> wrote: On 2020-01-28 16:56, Trey Harris wrote: > In other words—yes, you want Raku to attempt to provoke a segmentation > fault,

Re: stolen uint's

2020-01-29 Thread ToddAndMargo via perl6-users
On 2020-01-29 00:43, Tobias Boege wrote: On Tue, 28 Jan 2020, ToddAndMargo via perl6-users wrote: This all came up when I tried to match RegSetValueExW( _In_ HKEY hKey, _In_opt_ LPCWSTR lpValueName, _Reserved_ DWORD Reserved, _In_ DWORD dwType

Re: stolen uint's

2020-01-29 Thread ToddAndMargo via perl6-users
On 2020-01-29 09:19, Trey Harris wrote: The first line of https://docs.raku.org/type/UInt is: > The `|Int`| is defined as a subset of `|Int|:` How does that not “reflect that UInt is not a unique [type, I assume you meant], but a subset of Int”? You are correct. Mumble, mumble.

Re: stolen uint's

2020-01-29 Thread ToddAndMargo via perl6-users
On 2020-01-29 09:20, Trey Harris wrote: Argh! Editing error... On Wed, Jan 29, 2020 at 12:19 Trey Harris > wrote: The first line of https://docs.raku.org/type/UInt is: > The `|Int`| is defined as a subset of `|Int|:` Should have been (and is in that URL)

Re: stolen uint's

2020-01-29 Thread ToddAndMargo via perl6-users
On 2020-01-28 22:16, Veesh Goldman wrote: Hi Todd, I'd just like to point out one thing. Your confusion here (and in a few related posts) is that you aren't grokking the difference between uint and UInt. Hi Veesh, I am well aware of the difference between UInt and uint. Two weeks ago I was

Re: stolen uint's

2020-01-28 Thread ToddAndMargo via perl6-users
On 2020-01-28 18:57, Trey Harris wrote: For doing that sort of thing, learning a little glue C would probably be very useful (IMO, every systems-oriented programmer is helped immensely by knowing enough C to be able to munge low-level data structures). This is a lovely little example of a

Re: stolen uint's

2020-01-28 Thread ToddAndMargo via perl6-users
On 2020-01-28 18:57, Trey Harris wrote: For doing that sort of thing, learning a little glue C would probably be very useful (IMO, every systems-oriented programmer is helped immensely by knowing enough C to be able to munge low-level data structures). This is a lovely little example of a

Re: stolen uint's

2020-01-28 Thread ToddAndMargo via perl6-users
Hi Trey, Any chance of you sneaking in on the doc pages for ^name and range to explain the things you explained to me? I am a little odd in that I actually try to use the manual pages. But there may be other out there too. (Because I do not like the way the manual pages are written, does not

Re: stolen uint's

2020-01-28 Thread ToddAndMargo via perl6-users
Question: in those instance where I ONLY want to play with 8,16, or 32 BITS and have Raku leave whatever pattern I put in them along, what is the best thing to declare them as?

Re: stolen uint's

2020-01-28 Thread ToddAndMargo via perl6-users
On 2020-01-28 18:41, Trey Harris wrote: On Tue, Jan 28, 2020 at 21:18 Trey Harris > wrote: Nope. If I give you: 0x41 and tell you that’s a single octet, and that’s all you have, and I and ask you whether that’s an “A” or a decimal 97 or something else

Re: stolen uint's

2020-01-28 Thread ToddAndMargo via perl6-users
On 2020-01-28 18:18, Trey Harris wrote: my uint $z = -32; 224 Another misunderstanding on my part. I thought it would barf. All I really need to know is what is expected. To me I am getting wrong answers back, but as long as they are consistent answers I can deal with it: if

Re: stolen uint's

2020-01-28 Thread ToddAndMargo via perl6-users
On 2020-01-28 18:34, Trey Harris wrote: And that’s another thing: you’ll notice if you define a `my uint8 $x;` it will be set to 0. No undefined, no Nil. That doesn’t happen with non-native numeric values. Huh. I thought is as nil. > my uint $x; say $x.base(2) 0

Re: stolen uint's

2020-01-28 Thread ToddAndMargo via perl6-users
Ah You got ‘int’—lowercase ‘int’, not uppercase ‘Int’?? I didn’t see that example and I can’t find it scrolling back. Would you repost it, please? That would change things (and possibly indicate a bug). > my uint $u= 0xFF44; say $u.^name Int It was upper case Int. Again, wrong answer.

Re: stolen uint's

2020-01-28 Thread ToddAndMargo via perl6-users
On 2020-01-28 17:17, Trey Harris wrote: On Tue, Jan 28, 2020 at 20:04 ToddAndMargo via perl6-users mailto:perl6-users@perl.org>> wrote: On 2020-01-28 17:00, Trey Harris wrote: > On Tue, Jan 28, 2020 at 19:58 ToddAndMargo via perl6-users > mailto:perl6-us

Re: stolen uint's

2020-01-28 Thread ToddAndMargo via perl6-users
On 2020-01-28 17:00, Trey Harris wrote: On Tue, Jan 28, 2020 at 19:58 ToddAndMargo via perl6-users mailto:perl6-users@perl.org>> wrote: On 2020-01-28 16:56, Trey Harris wrote: > In other words—yes, you want Raku to attempt to provoke a segmentation > fault,

Re: stolen uint's

2020-01-28 Thread ToddAndMargo via perl6-users
On 2020-01-28 16:56, Trey Harris wrote: In other words—yes, you want Raku to attempt to provoke a segmentation fault, then recover and tell you whether it faulted or not. Huh? I just want to know what the variable actually is. I do not wnat to crash anything.

Re: stolen uint's

2020-01-28 Thread ToddAndMargo via perl6-users
On 2020-01-28 16:52, Trey Harris wrote: On Tue, Jan 28, 2020 at 19:46 ToddAndMargo via perl6-users mailto:perl6-users@perl.org>> wrote: > my uint $u= 0xFF44; say $u.^name Int Wrong answer It’s absolutely the right answer. You autoboxed it by running a metho

Re: stolen uint's

2020-01-28 Thread ToddAndMargo via perl6-users
On 2020-01-28 16:30, Trey Harris wrote: On Tue, Jan 28, 2020 at 19:06 ToddAndMargo via perl6-users mailto:perl6-users@perl.org>> wrote: On 2020-01-28 15:37, Trey Harris wrote: > > > On Tue, Jan 28, 2020 at 18:09 ToddAndMargo via perl6-users > mailto:pe

Re: stolen uint's

2020-01-28 Thread ToddAndMargo via perl6-users
On 2020-01-28 15:37, Trey Harris wrote: On Tue, Jan 28, 2020 at 18:09 ToddAndMargo via perl6-users mailto:perl6-users@perl.org>> wrote: Observer effect (physics) https://en.wikipedia.org/wiki/Observer_effect_(physics)      In physics, the observer effect is the

Re: stolen uint's

2020-01-28 Thread ToddAndMargo via perl6-users
Observer effect (physics) https://en.wikipedia.org/wiki/Observer_effect_(physics) In physics, the observer effect is the theory that the mere observation of a phenomenon inevitably changes that phenomenon ... An especially unusual version of the observer effect occurs in quantum

Re: range doc page

2020-01-28 Thread ToddAndMargo via perl6-users
On 2020-01-28 13:36, William Michels via perl6-users wrote: Todd, are you looking for a range smartmatch, or possibly the ".in-range" method (Rakudo-only, below)? my $u = 248 248 say (-128..127).in-range($u); Value out of range. Is: 248, should be in -128..127 in block at line 1 my

Re: range doc page

2020-01-28 Thread ToddAndMargo via perl6-users
On 2020-01-28 11:59, Trey Harris wrote: On Tue, Jan 28, 2020 at 14:55 ToddAndMargo via perl6-users mailto:perl6-users@perl.org>> wrote: No I am really confused: What part of      my int8 $u = 0xF8; $u.range is not following      method range(-->

Re: range doc page

2020-01-28 Thread ToddAndMargo via perl6-users
No I am really confused: What part of my int8 $u = 0xF8; $u.range is not following method range(--> Range:D) ?

range doc page

2020-01-27 Thread ToddAndMargo via perl6-users
Hi All, On https://docs.raku.org/routine/range, it states: method range(--> Range:D) What is being said? method I understand. Range would be the name of the method --> means is return the range of what was fed the method and is defined This one ain't all the hard to decipher.

range doc page

2020-01-27 Thread ToddAndMargo via perl6-users
Perplexed, -THi All, On https://docs.raku.org/routine/range, it states: method range(--> Range:D) What is being said? method I understand. Range would be the name of the method --> means is return the range of what was fed the method and is defined This one ain't all the hard

range problems

2020-01-27 Thread ToddAndMargo via perl6-users
Hi Al, Now what am I doing wrong? > my Int $u = 0xF8; say $u.Range; Invocant of method 'Range' must be a type object of type 'Int', not an object instance of type 'Int'. Did you forget a 'multi'? When is an Int not an Int? Perplexed, -T

Re: stolen uint's

2020-01-25 Thread ToddAndMargo via perl6-users
On 2020-01-25 18:36, ToddAndMargo via perl6-users wrote: Question: how do I create a 32 bit variable that is hands off to the boxing? > my native D32 is repr('P6int') is Int is nativesize(32) is unsigned { } (D32) > my D32 $d = 0xFF44; say D32.^name; say D32.Range; D32 -Inf^

Re: stolen uint's

2020-01-25 Thread ToddAndMargo via perl6-users
On 2020-01-25 18:21, Tobias Boege wrote: On Sat, 25 Jan 2020, ToddAndMargo via perl6-users wrote: Hi All, Anyone have a workaround to my stolen uint's? constant DWORD := uint32; (uint32) subset StrOrDword where Str | DWORD; (StrOrDword) sub x( StrOrDword $item ) { * say "

Re: stolen uint's

2020-01-25 Thread ToddAndMargo via perl6-users
On 2020-01-25 16:58, ToddAndMargo via perl6-users wrote: Hi All, Anyone have a workaround to my stolen uint's? > constant DWORD := uint32; (uint32) > subset StrOrDword where Str | DWORD; (StrOrDword) > sub x( StrOrDword $item ) { *   say "$item is a " ~ $item.^name;

Re: endian

2020-01-25 Thread ToddAndMargo via perl6-users
On 2020-01-24 16:26, Peter Pentchev wrote: PS. Don't get me wrong, I've done a lot of assembly language programming, and it is undoubtedly the correct tool for some tasks. Just... not all of them. Back in "the day", I did a bunch of "in line" machine coding. I was writing directly to video

stolen uint's

2020-01-25 Thread ToddAndMargo via perl6-users
Hi All, Anyone have a workaround to my stolen uint's? > constant DWORD := uint32; (uint32) > subset StrOrDword where Str | DWORD; (StrOrDword) > sub x( StrOrDword $item ) { * say "$item is a " ~ $item.^name; * } > x( "abc" ); abc is a Str > x( 3 ); Constraint type check failed in

Re: endian

2020-01-24 Thread ToddAndMargo via perl6-users
On 2020-01-24 13:49, Peter Pentchev wrote: On Fri, Jan 24, 2020 at 09:05:36AM -0800, ToddAndMargo via perl6-users wrote: On 2020-01-24 01:17, Marcel Timmerman wrote: On 1/23/20 6:28 PM, ToddAndMargo via perl6-users wrote: On Thu, Jan 23, 2020 at 11:51 AM ToddAndMargo via perl6-users

Re: endian

2020-01-24 Thread ToddAndMargo via perl6-users
On 2020-01-24 01:17, Marcel Timmerman wrote: On 1/23/20 6:28 PM, ToddAndMargo via perl6-users wrote: On Thu, Jan 23, 2020 at 11:51 AM ToddAndMargo via perl6-users mailto:perl6-users@perl.org>> wrote:     Hi All,     This is just a trivia question.     Does anyone know if the actua

Re: endian

2020-01-23 Thread ToddAndMargo via perl6-users
On Thu, Jan 23, 2020 at 11:51 AM ToddAndMargo via perl6-users mailto:perl6-users@perl.org>> wrote: Hi All, This is just a trivia question. Does anyone know if the actual data stored in Raku variables is little endian or big endian? -T On 2020-01-23 09:07, Paul Pr

endian

2020-01-23 Thread ToddAndMargo via perl6-users
Hi All, This is just a trivia question. Does anyone know if the actual data stored in Raku variables is little endian or big endian? -T

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

2020-01-23 Thread ToddAndMargo via perl6-users
On 2020-01-23 06:15, Elizabeth Mattijsen wrote: Larry Wall once warned that the "return..." syntax may be removed at some point. "return..." is a common idiom in many programming languages, and keeping it around might help programmers ease their transition to raku/perl6. So I'd hate to see

Re: REPL and arrows problem

2020-01-22 Thread ToddAndMargo via perl6-users
I am not using Fedora's repo for Rakudo. I am using https://github.com/nxadm/rakudo-pkg/releases Zef is inside the release. Maybe they forgot Readline On 2020-01-22 13:15, David Santiago wrote: So you should open the issue on that project/repo not on the official raku

Re: REPL and arrows problem

2020-01-22 Thread ToddAndMargo via perl6-users
On 2020-01-22 12:36, Norman Gaywood wrote: On Thu, 23 Jan 2020 at 06:21, ToddAndMargo via perl6-users mailto:perl6-users@perl.org>> wrote: RFE: REPL dependency check for Readline #153 https://github.com/Raku/problem-solving/issues/153 By the way, when you do this, it p

Re: REPL and arrows problem

2020-01-22 Thread ToddAndMargo via perl6-users
On 2020-01-22 11:20, ToddAndMargo via perl6-users wrote: RFE: REPL dependency check for Readline #153 https://github.com/Raku/problem-solving/issues/153 By the way, when you do this, it pops up immediately on the chat line!  They think of everything. :-) -T moved to https://github.com

Re: REPL and arrows problem

2020-01-22 Thread ToddAndMargo via perl6-users
RFE: REPL dependency check for Readline #153 https://github.com/Raku/problem-solving/issues/153 By the way, when you do this, it pops up immediately on the chat line! They think of everything. :-) -T

Re: my first two doc issues

2020-01-22 Thread ToddAndMargo via perl6-users
On 2020-01-19 14:46, ToddAndMargo via perl6-users wrote: Hi All, I just posted my first two doc issues: RFE: Please add the following examples to routine +^ https://github.com/Raku/doc/issues/3177 RFE: add some missng explanation to Operators #3175 https://github.com/Raku/doc/issues/3175 Now

Re: how do you --> two variables?

2020-01-22 Thread ToddAndMargo via perl6-users
On 2020-01-22 10:25, ToddAndMargo via perl6-users wrote: On 2020-01-21 16:17, Todd Chester via perl6-users wrote: Hi All, What is the syntax for returning two variable from a sub?  > sub x(--> Int, UInt) { return(-2,4) }; ===SORRY!=== Error while compiling: Malformed return value (

Re: how do you --> two variables?

2020-01-22 Thread ToddAndMargo via perl6-users
On 2020-01-21 16:17, Todd Chester via perl6-users wrote: Hi All, What is the syntax for returning two variable from a sub? > sub x(--> Int, UInt) { return(-2,4) }; ===SORRY!=== Error while compiling: Malformed return value (return constraints only allowed at the end of the signature)

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

2020-01-22 Thread ToddAndMargo via perl6-users
On 2020-01-21 22:44, Peter Pentchev wrote: On Tue, Jan 21, 2020 at 07:16:17PM -0800, Todd Chester via perl6-users wrote: On 2020-01-21 18:57, Tom Browder wrote: On Tue, Jan 21, 2020 at 18:34 Todd Chester via perl6-users mailto:perl6-users@perl.org>> wrote: On 2020-01-21 16:09, Todd

Re: My keeper on hashes

2020-01-21 Thread ToddAndMargo via perl6-users
New addition to my hash keeper: "returns" hash on a sub declaration: Note: "Associative" will return a hash or a map or even a pair > sub x() returns Associative { my %h= A=>"a"; return %h} > x {A => a} > sub x(--> Hash) { my %h= A=>"a", B=>"b"; return %h} > x

Re: My Windows Modules

2020-01-21 Thread ToddAndMargo via perl6-users
On 2020-01-21 00:58, Shlomi Fish wrote: Hi ITodd! On Mon, 20 Jan 2020 22:20:29 -0800 ToddAndMargo via perl6-users wrote: 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. You should already be using version control (git

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

2020-01-21 Thread ToddAndMargo via perl6-users
On 2020-01-21 05:00, Tom Browder wrote: The preferred syntax is: sub x(--> Hash) {...} See that in the docs. Larry Wall once warned that the "return..." syntax may be removed at some point. -Tom Hi Tom, Interesting. I have been showing both in my keepers. I currently use "returns "

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 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

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=>"

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 Wi

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: 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

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: 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 EX

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,

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 u

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-19 Thread ToddAndMargo via perl6-users
Follow up: Hi All, Once JJ agreed this was a bug and it got posted, the developers ran with it and even created a new class to handle the problem. https://github.com/Raku/doc/pull/3171#issuecomment-575991403 # class CArray multi new (Str $data , :$encoding = 'utf8') {

Re: definition confusion of + and +^

2020-01-19 Thread ToddAndMargo via perl6-users
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 TO KNOW! (That is a joke referencing a tabloid commercial.) -T

Re: my first two doc issues

2020-01-19 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

my first two doc issues

2020-01-19 Thread ToddAndMargo via perl6-users
Hi All, I just posted my first two doc issues: RFE: Please add the following examples to routine +^ https://github.com/Raku/doc/issues/3177 RFE: add some missng explanation to Operators #3175 https://github.com/Raku/doc/issues/3175 Now I wait and see what kind of reception I get. It will be

Re: definition confusion of + and +^

2020-01-19 Thread ToddAndMargo via perl6-users
On 2020-01-19 08:52, Marcel Timmerman wrote: On 1/19/20 2:47 AM, ToddAndMargo via perl6-users wrote: Hi All, Thank you all for the wonderful help on this. What I am still confused about is how to read these silly definition lines:   multi sub infix:<+>($a, $b --> Numeric:D)    

<    4   5   6   7   8   9   10   11   12   13   >