Re: How do I call system functions?

2017-03-08 Thread ToddAndMargo
On 03/08/2017 10:26 AM, Brandon Allbery wrote: On Wed, Mar 8, 2017 at 1:23 PM, ToddAndMargo > wrote: class Display is repr('CStruct') {} Class Display has no attributes, which is illegal with the CStruct

Re: How do I call system functions?

2017-03-08 Thread ToddAndMargo
On 03/08/2017 06:51 AM, Will Coleda wrote: Perl 6 uses "NativeCall" to call out to native library functions. I would start with https://docs.perl6.org/language/nativecall and come back with specific questions. Oh poop I have a lot of reading to do. Found a great example over at:

Re: How do I call system functions?

2017-03-08 Thread Brandon Allbery
On Wed, Mar 8, 2017 at 1:00 PM, ToddAndMargo wrote: > On 03/08/2017 07:49 AM, Brandon Allbery wrote: > >> >> On Wed, Mar 8, 2017 at 5:51 AM, ToddAndMargo > > wrote: >> >> int XStoreBytes(Display *display, char

Re: How do I call system functions?

2017-03-08 Thread ToddAndMargo
On Wed, Mar 8, 2017 at 5:51 AM, ToddAndMargo wrote: Hi All, In Linux, how do I call system functions from Perl 6? int XStoreBytes(Display *display, char *bytes, int nbytes); And what is that? "C"? Is there an inline "C" call? Many thanks, -T On 03/08/2017 06:51

Re: How do I call system functions?

2017-03-08 Thread Will Coleda
Perl 6 uses "NativeCall" to call out to native library functions. I would start with https://docs.perl6.org/language/nativecall and come back with specific questions. On Wed, Mar 8, 2017 at 5:51 AM, ToddAndMargo wrote: > Hi All, > > In Linux, how do I call system