Problem with multiple programs running under Proc::Async (code attached)

2016-04-04 Thread Ivaylo Ilionov
Hello guys, I’m writing a small test program to get a feeling about async programming in perl6. The program iterates over a lazy list of file paths and creates chained promises to copy, calculate hash sum and remove each file. The problem is that sometimes the promises which return status ‘kept

Re: Two topics not found in docs search: 'constant' and 'heredocs'.

2016-04-04 Thread Tom Browder
On Mon, Apr 4, 2016 at 7:41 AM, Timo Paulssen wrote: ... > I think you'd have to use the X tag in the pod source to create an index > entry that the search feature would then allow you to use. Pull request submitted and accepted to add the two items. -Tom

Re: Two topics not found in docs search: 'constant' and 'heredocs'.

2016-04-04 Thread Tom Browder
On Mon, Apr 4, 2016 at 7:41 AM, Timo Paulssen wrote: > On 04/04/16 13:42, Shlomi Fish wrote: >> How are you searching exactly? With which command/which URL? > Probably the search field on the doc page. Precisely. -Tom

Re: How to use NativeCall with a libc function?

2016-04-04 Thread Tom Browder
On Mon, Apr 4, 2016 at 10:45 AM, Timo Paulssen wrote: > Hey Tom, > > in NativeCall, "is rw" has a very special meaning. For example, if you have > "int32 $foo is rw", you'll actually give the native function a pointer to an > int, and perl6 will make that work out for you properly if you have an "

Re: How to use NativeCall with a libc function?

2016-04-04 Thread Timo Paulssen
Hey Tom, in NativeCall, "is rw" has a very special meaning. For example, if you have "int32 $foo is rw", you'll actually give the native function a pointer to an int, and perl6 will make that work out for you properly if you have an "int" or an "Int" variable that you pass. Apparently we don

Re: How to use NativeCall with a libc function?

2016-04-04 Thread Tom Browder
On Sun, Apr 3, 2016 at 12:28 PM, Tom Browder wrote: > I have a module LIBCIO.pm6: I have pared all code down to a single test file located here: https://github.com/tbrowder/perl6-read-write-tests/blob/master/test-readline.pl6 with its input text file for reading here: https://github.com/t

Re: Two topics not found in docs search: 'constant' and 'heredocs'.

2016-04-04 Thread Tom Browder
On Mon, Apr 4, 2016 at 7:41 AM, Timo Paulssen wrote: > On 04/04/16 13:42, Shlomi Fish wrote: ... > I think you'd have to use the X tag in the pod source to create an index > entry that the search feature would then allow you to use. Thanks. -Tom

Re: Two topics not found in docs search: 'constant' and 'heredocs'.

2016-04-04 Thread Timo Paulssen
On 04/04/16 13:42, Shlomi Fish wrote: How are you searching exactly? With which command/which URL? -- Shlomi Probably the search field on the doc page. I can reproduce both terms not giving any results there. I think you'd have to use the X tag in the pod source to create an index

Re: Two topics not found in docs search: 'constant' and 'heredocs'.

2016-04-04 Thread Shlomi Fish
Hi Tom! On Mon, 4 Apr 2016 06:20:36 -0500 Tom Browder wrote: > The declarator "constant" is found here: > > http://doc.perl6.org/language/5to6-nutshell#constant > > And "Heredocs" are discussed here: > > http://doc.perl6.org/language/quoting#Heredocs%3A_%3Ato > > but neither is listed wh

Two topics not found in docs search: 'constant' and 'heredocs'.

2016-04-04 Thread Tom Browder
The declarator "constant" is found here: http://doc.perl6.org/language/5to6-nutshell#constant And "Heredocs" are discussed here: http://doc.perl6.org/language/quoting#Heredocs%3A_%3Ato but neither is listed when doing a search. And how does one make a phrase or term searchable in the docs

Re: How to use NativeCall with a libc function?

2016-04-04 Thread Tom Browder
On Sun, Apr 3, 2016 at 1:26 PM, Timo Paulssen wrote: > When you have a sub that's not "our", it will not show up in the > module's namespace. Since you export the sub, it'll be available without > LIBCIO:: before its name. > > I suggest you pass Str (the String type object) instead of 'libc' for >