Re: NativeCall Doc booboo

2020-01-15 Thread ToddAndMargo via perl6-users
Oh, and not properly terminating your C String seriously messes with the C's strlen()

Re: NativeCall Doc booboo

2020-01-02 Thread ToddAndMargo via perl6-users
On 2020-01-01 19:27, Alexis wrote: Hi Todd, In my experience, /most/ programming languages in general use have 0-based indexing, rather than 1 (Lua is one exception that comes to mind). So when dealing with a new language, i assume 0-based indexing, unless explicitly told otherwise.

Re: NativeCall Doc booboo

2020-01-01 Thread Alexis
Hi Todd, i'm not one of the Raku devs, but i'd like to add my two bits here. To begin with, i'd just like to note that there's no need for quotes when referencing the C programming language, just as there's no need for quotes around Raku: "the C programming language", not "the 'C'

Re: NativeCall Doc booboo

2020-01-01 Thread ToddAndMargo via perl6-users
On 2020-01-01 11:49, William Michels via perl6-users wrote: Hi Todd, Isn't the point of the NativeCall interface to call native C code? Hi William, Exactly! And figuring out how to do it is killing me! https://docs.microsoft.com/en-us/windows/win32/api/winbase/nf-winbase-formatmessagew is

Re: NativeCall Doc booboo

2020-01-01 Thread ToddAndMargo via perl6-users
On 2020-01-01 11:11, JJ Merelo wrote: It will not be corrected because it's not a documentation error. Exactly. And it is an error because it does not conform to "C" standards for strings. That you got some examples to work is just dumb luck. I had no such dumb luck. Also, using strings

Re: NativeCall Doc booboo

2020-01-01 Thread William Michels via perl6-users
On Wed, Jan 1, 2020 at 10:57 AM ToddAndMargo via perl6-users wrote: > > On 2020-01-01 01:58, JJ Merelo wrote: > > > > El mar., 31 dic. 2019 a las 21:56, ToddAndMargo via perl6-users > () escribió: >> >> On 2019-12-31 09:17, JJ Merelo wrote: >> > Hi, >> > >> > El mar., 31 dic. 2019 a las 5:54,

Re: NativeCall Doc booboo

2020-01-01 Thread JJ Merelo
El mié., 1 ene. 2020 a las 19:57, ToddAndMargo () escribió: > On 2020-01-01 01:58, JJ Merelo wrote: > > > > El mar., 31 dic. 2019 a las 21:56, ToddAndMargo via perl6-users (< > perl6-users@perl.org>) escribió: > >> On 2019-12-31 09:17, JJ Merelo wrote: >> > Hi, >> > >> > El mar., 31 dic. 2019 a

Re: NativeCall Doc booboo

2020-01-01 Thread ToddAndMargo via perl6-users
On 2020-01-01 01:58, JJ Merelo wrote: El mar., 31 dic. 2019 a las 21:56, ToddAndMargo via perl6-users () escribió: On 2019-12-31 09:17, JJ

Re: NativeCall Doc booboo

2020-01-01 Thread JJ Merelo
El mar., 31 dic. 2019 a las 21:56, ToddAndMargo via perl6-users (< perl6-users@perl.org>) escribió: > On 2019-12-31 09:17, JJ Merelo wrote: > > Hi, > > > > El mar., 31 dic. 2019 a las 5:54, Todd Chester via perl6-users > > (mailto:perl6-users@perl.org>>) escribió: > > > > Hi All, > > > > >

Re: NativeCall Doc booboo

2019-12-31 Thread ToddAndMargo via perl6-users
On 2019-12-31 09:17, JJ Merelo wrote: Hi, El mar., 31 dic. 2019 a las 5:54, Todd Chester via perl6-users (mailto:perl6-users@perl.org>>) escribió: Hi All, https://docs.raku.org/language/nativecall.html#Passing_and_returning_values Did anyone else discover the mistake, hopefully

Re: NativeCall Doc booboo

2019-12-31 Thread JJ Merelo
Hi, El mar., 31 dic. 2019 a las 5:54, Todd Chester via perl6-users (< perl6-users@perl.org>) escribió: > Hi All, > > https://docs.raku.org/language/nativecall.html#Passing_and_returning_values > > Did anyone else discover the mistake, hopefully not the hard way like I > did. Anyone get weird

NativeCall Doc booboo

2019-12-30 Thread Todd Chester via perl6-users
Hi All, https://docs.raku.org/language/nativecall.html#Passing_and_returning_values Did anyone else discover the mistake, hopefully not the hard way like I did.  Anyone get weird gibberish printed out like I did? my$string="FOO"; # The lifetime of this variable must be equal to the