Re: I need help with NativeCall

2018-03-02 Thread Richard Hainsworth
Todd, I figured out some of NativeCall by working with the GTK subroutines. Eventually, I had to write some programs in C to use GTK natively before getting a good understanding about how GTK-Simple works. In addition, I have not figured out how to access CStruct variables yet. So my code

(default) Real->Rat precision should match what compiler uses for literals

2018-03-02 Thread Jim Avera
Hello, Using Rakudo 2018.01:     my Rat  $rat-from-literal = 1.23456789;     my Rat  $rat-from-str = "1.23456789".Rat;     my Real $real = 1.23456789e0;     my Rat  $rat-from-real    = $real.Rat;     say $rat-from-literal.nude; # (123456789 1)     say

Re: I need help with NativeCall

2018-03-02 Thread ToddAndMargo
On 03/02/2018 11:31 AM, ToddAndMargo wrote: Hi All, https://docs.perl6.org/language/nativecall I just don't understand. I want specifically (not a work around) want to make a call to "getaddrinfo" and I don't know how to write in C. (It is part of troubleshooting some other code that uses

I need help with NativeCall

2018-03-02 Thread ToddAndMargo
Hi All, https://docs.perl6.org/language/nativecall I just don't understand. I want specifically (not a work around) want to make a call to "getaddrinfo" and I don't know how to write in C. (It is part of troubleshooting some other code that uses getaddrinfo. I want to see what it sees.) The