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

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 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 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 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: Your thoughts on Padre?

2017-03-08 Thread Dominique Dumont
[ sorry, I'm late on my mails.. ] On Monday, 27 February 2017 18:23:19 CET Luca Ferrari wrote: > please note that at least in Ubuntu Padre is shipped as version 1 > while 1.01 is available. I'm afraidr that won't last. Due to the many bugs (debuggger test don't work with recent perl), and lack

Re: issues with

2017-03-08 Thread ToddAndMargo
On 03/08/2017 01:08 PM, ToddAndMargo wrote: Hi All, What is wrong with this? $ perl6 -MX11::Xlib::Raw -e 'say "hi";' ===SORRY!=== Could not find X11::Xlib::Raw::X at line 5 in: /home/tony/.perl6 /usr/share/perl6/site /usr/share/perl6/vendor /usr/share/perl6

Re: How do I use "&?ROUTINE"?

2017-03-08 Thread Brent Laabs
You must be doing something wrong then: > sub LinuxCheck () { print &?ROUTINE.name ~ " " ~ "$*DISTRO OS\n"; } sub LinuxCheck () { #`(Sub|140478449412680) ... } > LinuxCheck(); LinuxCheck macosx OS On Tue, Mar 7, 2017 at 11:54 PM, ToddAndMargo wrote: > On Tue, Mar 7,