Re: Please explain this to me

2018-09-13 Thread Todd Chester
On 09/13/2018 10:24 PM, JJ Merelo wrote: Last time I counted, there were a dozen comments and 3 commits in the issue I created to try and improve the description. 2 files were modified by me. Is there some where I can look at these comments? That's rather a dynamic way of not budging.

Re: Please explain this to me

2018-09-13 Thread Todd Chester
On 09/12/2018 12:19 AM, Simon Proctor wrote: In answer to "why the : between Str:D and Cool:D and why Int(Cool:D) ?" can I just point out the video I linked (or the slides) which answer both of these questions. Hi Simon, Larry Wall, who has a unique gift for making the complex easy, explai

Re: Please explain this to me

2018-09-13 Thread Todd Chester
On 09/13/2018 10:24 PM, JJ Merelo wrote: Last time I counted, there were a dozen comments and 3 commits in the issue I created to try and improve the description. 2 files were modified by me. That's rather a dynamic way of not budging. Cheers JJ I wrote you off list giving you my reasoni

Re: how do I do this index in p6?

2018-09-13 Thread JJ Merelo
Of course, you can also use Math::Constants use Math::Constants; say "We are flying at speed ", .1c; -- JJ

Re: Please explain this to me

2018-09-13 Thread Todd Chester
On 09/12/2018 10:34 AM, Larry Wall wrote: On Tue, Sep 11, 2018 at 10:28:27PM -0700, ToddAndMargo wrote: : Okay, foul! :Str:D: Cool:D $needle : why is there not a comma between "Str:D:" and "Cool:D"? : And what is with the extra ":". By chance is the extra ":" : a confusing way of using a

Re: Please explain this to me

2018-09-13 Thread JJ Merelo
Hi, El vie., 14 sept. 2018 a las 7:11, Todd Chester () escribió: > > > On 09/11/2018 05:05 AM, Simon Proctor wrote: > > Please note the Perl5 docs have had decades of people working on them > > the Perl6 ones less so. There's bound to be some difference in scope. > > Hi Simon, > > That you fo

Re: Please explain this to me

2018-09-13 Thread Todd Chester
On 09/11/2018 05:05 AM, Simon Proctor wrote: Please note the Perl5 docs have had decades of people working on them the Perl6 ones less so. There's bound to be some difference in scope. Hi Simon, That you for the tutorial. I have it tagged to read over again really SSSLLLOOOWWLY As for

Re: how do I do this index in p6?

2018-09-13 Thread Brad Gilbert
On Thu, Sep 13, 2018 at 11:52 PM Todd Chester wrote: > > >> Le jeu. 13 sept. 2018 à 23:12, ToddAndMargo >> > a écrit : > >> > > > >> $ p6 'constant c=299792458; say c ~" metres per second";' > >> 299792458 metres per second > >> > >> Hm. Now I am wond

Re: Nil ?

2018-09-13 Thread Todd Chester
On 09/13/2018 02:24 PM, Elizabeth Mattijsen wrote: On 13 Sep 2018, at 23:21, ToddAndMargo wrote: $ p6 'my $x="\na\nb\nc\n"; for ( split "\n", $x ) -> $i {print "<$i>\n"};' <> <> with beginning and ending new lines. FWIW, a more Perl6ish way would be: $ p6 'my $x="\na\nb\nc\n"; for $

Re: how do I do this index in p6?

2018-09-13 Thread Todd Chester
Le jeu. 13 sept. 2018 à 23:12, ToddAndMargo > a écrit : $ p6 'constant c=299792458; say c ~" metres per second";' 299792458 metres per second Hm. Now I am wondering how to format the commas into the say. On 09/13/2018 02:43 PM, Laurent Ro

Re: Multibyte string in Windows command line

2018-09-13 Thread WFB
Never mind. .lines gives back Str and thus .encode is needed... Thanks again On Fri, 14 Sep 2018 at 06:20, WFB wrote: > @Andreas Thanks, I was thinking to do that with regex by myself, but that > would be a ugly workaround and only as a last resort. > > @Brad: Cool, thanks, I got the errors as w

Re: Multibyte string in Windows command line

2018-09-13 Thread WFB
@Andreas Thanks, I was thinking to do that with regex by myself, but that would be a ugly workaround and only as a last resort. @Brad: Cool, thanks, I got the errors as well. But did not come up with your solution. One question, though: >> for $installer.out.lines.map(*.encode('latin1').decode('ut

Re: Nil ?

2018-09-13 Thread Elizabeth Mattijsen
> On 13 Sep 2018, at 23:21, ToddAndMargo wrote: > On 09/13/2018 12:29 PM, Elizabeth Mattijsen wrote: >>> On 13 Sep 2018, at 20:47, ToddAndMargo wrote: >>> On 09/12/2018 10:09 AM, Larry Wall wrote: Basically, ignore any advice to treat Nil as a normal value, because it really is intended

Re: Nil ?

2018-09-13 Thread ToddAndMargo
On 09/13/2018 12:29 PM, Elizabeth Mattijsen wrote: On 13 Sep 2018, at 20:47, ToddAndMargo wrote: On 09/12/2018 10:09 AM, Larry Wall wrote: Basically, ignore any advice to treat Nil as a normal value, because it really is intended to represent the *absence* of a value as much as possible. It's

Re: how do I do this index in p6?

2018-09-13 Thread ToddAndMargo
On 09/13/2018 12:10 PM, Parrot Raiser wrote: https://docs.perl6.org/language/terms#Identifier_terms On 9/13/18, ToddAndMargo wrote: On 09/12/2018 07:14 AM, Parrot Raiser wrote: Built-in constants: pi, tau, e, i Do you know where I can find the list ? https://duckduckgo.com/?q=perl6+b

Re: Nil ?

2018-09-13 Thread Elizabeth Mattijsen
> On 13 Sep 2018, at 20:47, ToddAndMargo wrote: > On 09/12/2018 10:09 AM, Larry Wall wrote: >> Basically, ignore any advice to treat Nil as a normal value, because >> it really is intended to represent the *absence* of a value as much as >> possible. It's a bit like the way solid-state electronic

Re: how do I do this index in p6?

2018-09-13 Thread Parrot Raiser
https://docs.perl6.org/language/terms#Identifier_terms On 9/13/18, ToddAndMargo wrote: > On 09/12/2018 07:14 AM, Parrot Raiser wrote: >> Built-in constants: >> pi, tau, e, i > > Do you know where I can find the list ? > > https://duckduckgo.com/?q=perl6+built+in+constants&t=ffab&ia=web > > i

Re: how do I do this index in p6?

2018-09-13 Thread ToddAndMargo
On 09/12/2018 07:14 AM, Parrot Raiser wrote: Built-in constants: pi, tau, e, i Do you know where I can find the list ? https://duckduckgo.com/?q=perl6+built+in+constants&t=ffab&ia=web is no help

Re: Nil ?

2018-09-13 Thread ToddAndMargo
On 09/12/2018 10:09 AM, Larry Wall wrote: Basically, ignore any advice to treat Nil as a normal value, because it really is intended to represent the *absence* of a value as much as possible. It's a bit like the way solid-state electronics treats "holes" as if they were real particles, and gets

Re: Multibyte string in Windows command line

2018-09-13 Thread Brad Gilbert
On Thu, Sep 13, 2018 at 7:22 AM WFB wrote: > > Hi all, > > My perl6 runs an executable and prints its output. This output is printed as > multibyte string. I assume the executable gives back a multibyte string and > perl6 interpret its as one byte string for whatever reasons. > I tried Run with

Re: Multibyte string in Windows command line

2018-09-13 Thread Andreas.Mueller
but you can solve that (quick and dirty) with perl6.. ..delete every secound char - it is most often \0 have fun A. On 13.09.18 16:03, WFB wrote: > Thanks! > > Has nothing to do with perl6. Unfortunately, I have no idea how I can "fix" > that. > At least I can Windows blame again ^^ > >

Re: Multibyte string in Windows command line

2018-09-13 Thread WFB
Thanks! Has nothing to do with perl6. Unfortunately, I have no idea how I can "fix" that. At least I can Windows blame again ^^ Best, Wolfgang On Thu, 13 Sep 2018 at 15:21, wrote: > Hi Wolfgang, > > that is an Windows issue. You can see that if you pipe the output of > your program in a

Re: Multibyte string in Windows command line

2018-09-13 Thread Andreas.Mueller
Hi Wolfgang, that is an Windows issue. You can see that if you pipe the output of your program in a textfile (from within the command interpreter: cmd.exe): c:\> install.exe > x.txt and the 'hex' your x.txt.. A. On 13.09.18 14:21, WFB wrote: > Hi all, > > My perl6 runs an executa

Multibyte string in Windows command line

2018-09-13 Thread WFB
Hi all, My perl6 runs an executable and prints its output. This output is printed as multibyte string. I assume the executable gives back a multibyte string and perl6 interpret its as one byte string for whatever reasons. I tried Run with different encodings like windows-1251, utf16 and so on. No