Re: Pointer to bug question

2022-11-27 Thread Clifton Wood
ToddAndMargo: Why are you referencing NativeHelpers::Blob when I've linked
to the code you need. The bug was in the code snippet I've sent. NONE of my
stuff is available via zef because CURI (and hence zef) have problems with
large scale code that I am still trying to resolve.

You should be able to get a clean copy of the role from here
.
You should be able to download it, copy it to your project directory and
execute it.

No zef necessary.

On Fri, Nov 25, 2022 at 4:50 PM ToddAndMargo  wrote:

> On 11/24/22 20:55, Clifton Wood wrote:
> > Heh!  I had a bug in my code and you pretty much mimic'd it. That's on
> > me. Line 114 should read:
> >
> > "my $a = GLib::Roles::TypedBuffer[WTS_SESSION_INFOA].new($ppSessionInf);"
> >
> > Let me know how it works out.
> >
>
>
>
> zef uninstall NativeHelpers::Blob
> ===> Uninstalled from C:\Users\tony\.raku
> NativeHelpers::Blob:ver<0.1.12>:auth
>
> K:\Windows\NtUtil>zef install NativeHelpers::Blob
> ===> Searching for: NativeHelpers::Blob
> ===> Updating fez mirror: https://360.zef.pm/
> ===> Updated fez mirror: https://360.zef.pm/
> ===> Updating rea mirror:
> https://raw.githubusercontent.com/Raku/REA/main/META.json
> ===> Updated rea mirror:
> https://raw.githubusercontent.com/Raku/REA/main/META.json
> ===> Testing: NativeHelpers::Blob:ver<0.1.12>:auth
> [NativeHelpers::Blob] ===SORRY!=== Error while compiling
>
> C:\Users\tony\.zef\tmp\NativeHelpers%3A%3ABlob%3Aver%3C0.1.12%3E%3Aauth%3Cgithub%3Asalortiz%3E.tar.gz\NativeHelpers-Blob-master/t\02-cstruct.t
> [NativeHelpers::Blob] Failed to open file
> C:\Users\tony\.zef\tmp\NativeHelpers%3A%3ABlob%3Aver%3C0.1.12%3E%3Aauth%3Cgithub%3Asalortiz%3E.tar.gz\NativeHelpers-Blob-master\t\.precomp\BE04B1FADFC312E3411CB403B43E629B7AED3ADC\27\27F410113BBD23B298581F9F713FBCFB39C1584E.repo-id.2BAIB5TQR7KNKMX1796GKOJF6.tmp:
>
> No such file or directory
> [NativeHelpers::Blob] at
>
> C:\Users\tony\.zef\tmp\NativeHelpers%3A%3ABlob%3Aver%3C0.1.12%3E%3Aauth%3Cgithub%3Asalortiz%3E.tar.gz\NativeHelpers-Blob-master/t\02-cstruct.t:3
> [NativeHelpers::Blob] Actually thrown at:
> [NativeHelpers::Blob]   in any statement_control at C:\Program
> Files\Rakudo\bin\..\share\perl6\lib/Perl6/Grammar.moarvm line 1
> [NativeHelpers::Blob] ===SORRY!=== Error while compiling
>
> C:\Users\tony\.zef\tmp\NativeHelpers%3A%3ABlob%3Aver%3C0.1.12%3E%3Aauth%3Cgithub%3Asalortiz%3E.tar.gz\NativeHelpers-Blob-master/t\99-my-meta.t
> [NativeHelpers::Blob] Failed to open file
> C:\Users\tony\.zef\tmp\NativeHelpers%3A%3ABlob%3Aver%3C0.1.12%3E%3Aauth%3Cgithub%3Asalortiz%3E.tar.gz\NativeHelpers-Blob-master\lib\.precomp\BE04B1FADFC312E3411CB403B43E629B7AED3ADC\27\27F410113BBD23B298581F9F713FBCFB39C1584E.repo-id.2Q72L8EJX9FJGLKXVSQOGR36G.tmp:
>
> No such file or directory
> [NativeHelpers::Blob] at
>
> C:\Users\tony\.zef\tmp\NativeHelpers%3A%3ABlob%3Aver%3C0.1.12%3E%3Aauth%3Cgithub%3Asalortiz%3E.tar.gz\NativeHelpers-Blob-master/t\99-my-meta.t:3
> [NativeHelpers::Blob] Actually thrown at:
> [NativeHelpers::Blob]   in any statement_control at C:\Program
> Files\Rakudo\bin\..\share\perl6\lib/Perl6/Grammar.moarvm line 1
> ===> Testing [FAIL]: NativeHelpers::Blob:ver<0.1.12>:auth
> Aborting due to test failure:
> NativeHelpers::Blob:ver<0.1.12>:auth (use --force-test
> to override)
>
>


Re: What is this "\t"?

2022-11-27 Thread Clifton Wood
@ToddAndMargo: These are all explained in the Raku documentation. Long
story short:

"my \t" -- this is a RAW definition. You can use it to hold types, as in
this case.
".of" is a method for Parametric Roles. It generally returns a type
"??" is the trinary operator. (expr) ??  !! 

If you are going to go further, please read the Raku documentation. These
are basic questions that are covered there in detail.

- Xliff

On Sun, Nov 27, 2022 at 8:42 PM ToddAndMargo via perl6-users <
perl6-users@perl.org> wrote:

> Hi All,
>
> On
>
>
> https://github.com/salortiz/NativeHelpers-Blob/blob/master/lib/NativeHelpers/Blob.pm6
>
> Line 96
>
> my \t = ptr.of ~~ void ?? $type.of !! ptr.of;
>
>
> What is `\t`?
>
> What of `.of`
>
> What is `??`?
>
> What is `!!`
>
>
> Yours in confusion.
>
> -T
>


What is this "\t"?

2022-11-27 Thread ToddAndMargo via perl6-users

Hi All,

On

https://github.com/salortiz/NativeHelpers-Blob/blob/master/lib/NativeHelpers/Blob.pm6

Line 96

my \t = ptr.of ~~ void ?? $type.of !! ptr.of;


What is `\t`?

What of `.of`

What is `??`?

What is `!!`


Yours in confusion.

-T