Re: unhandled target type

[email protected] (Timo Paulssen via perl6-users)
Newsgroups perl.perl6.users
Message-ID <[email protected]>
On 11/16/24 08:21, ToddAndMargo via perl6-users wrote:
> On 11/15/24 04:49, ToddAndMargo via perl6-users wrote:
>
>
> And in less than 24 hours, Timo located the regression
> and placed a pull request to fix it.
>
> In the 30 years I have been doing this stuff, I have
> NEVER seen that kind of a rapid responds.  WOW!
>
> Now 102 reasons to adore Raku!
>
> -T


Thanks Todd,

the bug report was very actionable, the code that reproduces the error 
was short enough, the stack trace gave me a good hint where to look and 
an early hunch I had for the reason why it was complaining turned out to 
be correct. Plus, I happened to have some Raku hacking time available.

By the way, I think you can work around the bug by either using 
CArray[WTS_SESSION_INFOA] instead of Pointer[WTS_SESSION_INFOA], or 
maybe by using .succ on the $array Pointer $i times instead of the [$i] 
syntax, since the bug was specifically in the implementation of the 
postcircumfix [] operator of TypedPointer. I have not tried this myself, 
though. This would let you continue with the new Rakudo version instead 
of having to wait for the next release, or compiling Rakudo yourself, or 
anything like that.

Hope that helps!
   - Timo
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.