Re: stolen uint's

2020-01-29 Thread Trey Harris
On Wed, Jan 29, 2020 at 03:44 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,

Re: stolen uint's

2020-01-29 Thread Tom Browder
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 "Int" || $ValueData < 0 { # UInt gets >

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 Trey Harris
On Wed, Jan 29, 2020 at 14:39 ToddAndMargo via perl6-users < perl6-users@perl.org> wrote: > 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 > > > >

Re: stolen uint's

2020-01-29 Thread Trey Harris
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) “The `UInt` is defined as…”

Re: stolen uint's

2020-01-29 Thread William Michels via perl6-users
> "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 that you're having problems with. The issue is you making

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 Trey Harris
On Wed, Jan 29, 2020 at 13:04 ToddAndMargo via perl6-users < perl6-users@perl.org> wrote: > 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

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

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

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-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, then recover and

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 this as a request for

Re: stolen uint's

2020-01-29 Thread Trey Harris
On Wed, Jan 29, 2020 at 13:28 Trey Harris wrote: > whose values happen to overlap in a way that describes a subset. Perl > isn’t Prolog; > It isn’t either, but that’s irrelevant; I meant Raku obviously. Thinko. >

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 Trey Harris
On Wed, Jan 29, 2020 at 14:01 ToddAndMargo via perl6-users < 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 play someone who knows about Windows on TV), but, okay, I’ll > > bite...

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

Re: stolen uint's

2020-01-29 Thread Trey Harris
On Wed, Jan 29, 2020 at 11:58 ToddAndMargo via perl6-users < perl6-users@perl.org> wrote: > 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

Re: stolen uint's

2020-01-29 Thread Trey Harris
On Wed, Jan 29, 2020 at 13:50 ToddAndMargo via perl6-users < 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 this as a request for typeid(); the mapping creation and lookup is an

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 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. Showing me

Re: stolen uint's

2020-01-29 Thread Trey Harris
On Wed, Jan 29, 2020 at 18:39 ToddAndMargo via perl6-users < perl6-users@perl.org> wrote: > 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

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

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 text into UTF. I

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 Trey Harris
On Wed, Jan 29, 2020 at 17:52 ToddAndMargo via perl6-users < 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. Showing me more code relating to them—or any other fields > > besides

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 Trey Harris
I’m still asking you the same question I asked in https://www.nntp.perl.org/group/perl.perl6.users/2020/01/msg8029.html 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

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 Trey Harris
On Wed, Jan 29, 2020 at 15:28 ToddAndMargo via perl6-users < 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 text into UTF. I was asking for an example of the 3-byte UTF plus 32-bit

Re: stolen uint's

2020-01-29 Thread Trey Harris
On Wed, Jan 29, 2020 at 20:20 ToddAndMargo via perl6-users < 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 whose values happen to overlap in a way that describes a > > subset. Perl

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
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 Tobias Boege
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, >