Re: An operation first awaited

2018-05-28 Thread Norman Gaywood
I've moved this question to stackoverflow https://stackoverflow.com/questions/50573586/perl6-an-operation-first-awaited More comments inline below. On Tue, 29 May 2018 at 01:40, Brad Gilbert wrote: > . > > An operation first awaited: > > in sub MAIN at ./traverse-dir0.p6 line 24 > > in

Re: An operation first awaited

2018-05-28 Thread Norman Gaywood
On Mon, 28 May 2018 at 17:24, JJ Merelo wrote: > Hi > > El lun., 28 may. 2018 a las 9:04, Norman Gaywood () > escribió: > >> T""his simple program creates a thread to read a directory with dir() and >> place the files on a channel. $N worker threads read that channel and >> "process" (prints)

Re: An operation first awaited

2018-05-28 Thread Brad Gilbert
Comments inline. On Mon, May 28, 2018 at 2:02 AM, Norman Gaywood wrote: > T""his simple program creates a thread to read a directory with dir() and > place the files on a channel. $N worker threads read that channel and > "process" (prints) the files. But I'm getting this "An

Re: () can I get away with this?

2018-05-28 Thread ToddAndMargo
On Mon, May 28, 2018 at 1:26 AM, ToddAndMargo > wrote: Hi All, As the guys o the chat line say, "Death to parenthesis". Can I get away with doing away with parenthesis on these, or does it man something different without the

Re: () can I get away with this?

2018-05-28 Thread ToddAndMargo
On 05/28/2018 01:26 AM, ToddAndMargo wrote: Hi All, As the guys o the chat line say, "Death to parenthesis". Can I get away with doing away with parenthesis on these, or does it man something different without the parenthesis? ( $NewRev = $Line ) ~~ s| .* "Version: <\/b>" ||; $NewRev = $Line

() can I get away with this?

2018-05-28 Thread ToddAndMargo
Hi All, As the guys o the chat line say, "Death to parenthesis". Can I get away with doing away with parenthesis on these, or does it man something different without the parenthesis? ( $NewRev = $Line ) ~~ s| .* "Version: <\/b>" ||; $NewRev = $Line ~~ s| .* "Version: <\/b>" ||; return ( $a,

Re: An operation first awaited

2018-05-28 Thread JJ Merelo
Hi El lun., 28 may. 2018 a las 9:04, Norman Gaywood () escribió: > T""his simple program creates a thread to read a directory with dir() and > place the files on a channel. $N worker threads read that channel and > "process" (prints) the files. But I'm getting this "An

An operation first awaited

2018-05-28 Thread Norman Gaywood
T""his simple program creates a thread to read a directory with dir() and place the files on a channel. $N worker threads read that channel and "process" (prints) the files. But I'm getting this "An operation first awaited:" error. I've read the traps page about this error several times, but

Re: my keeper on random numbers

2018-05-28 Thread ToddAndMargo
On 05/27/2018 11:38 PM, ToddAndMargo wrote: On 05/27/2018 04:17 PM, Brandon Allbery wrote: In the long form, yes. That's why the ^ shorthand exists. With the long form you have to start from an object of the same type to get to its metamodel, then pass the object you're actually asking about

Re: my keeper on random numbers

2018-05-28 Thread ToddAndMargo
On 05/27/2018 04:17 PM, Brandon Allbery wrote: In the long form, yes. That's why the ^ shorthand exists. With the long form you have to start from an object of the same type to get to its metamodel, then pass the object you're actually asking about to the metamodel method; the simplest way to

Re: my keeper on random numbers

2018-05-28 Thread ToddAndMargo
On 05/25/2018 09:19 PM, ToddAndMargo wrote: Hi All,     This is my keep file submitted for your critique. Many thanks, -T Perl 6: random numbers: `rand` return a positive real number, always less than one:     $ p6 'say rand;'     0.268091668368972 Place a number in front of it to get