Re: Appropriate last words

2018-09-03 Thread The Sidhekin
On Mon, Sep 3, 2018 at 10:50 PM Curt Tilmes wrote: > On Mon, Sep 3, 2018 at 4:28 PM Parrot Raiser <1parr...@gmail.com> wrote: > >> If I understand that correctly, "die" needs to be documented as always >> outputting the line number, and that for user-oriented messages, one >> of the other

Re: Appropriate last words

2018-09-03 Thread Curt Tilmes
On Mon, Sep 3, 2018 at 4:28 PM Parrot Raiser <1parr...@gmail.com> wrote: > If I understand that correctly, "die" needs to be documented as always > outputting the line number, and that for user-oriented messages, one > of the other techniques should be used. > die throws the Exception -- you can

Re: Appropriate last words

2018-09-03 Thread Parrot Raiser
If I understand that correctly, "die" needs to be documented as always outputting the line number, and that for user-oriented messages, one of the other techniques should be used. Otherwise, this question is likely to come up a lot.

Re: Appropriate last words

2018-09-03 Thread Larry Wall
On Mon, Sep 03, 2018 at 11:45:58AM -0500, Stephen Wilcoxon wrote: : Why the change in die handling between Perl 5 and 6? Suppressing line : numbers with newline was very handy. Alternatively, adding some sort of : directive would be more straight-forward (at least for Perl 5 users moving : to

Re: Handing over control

2018-09-03 Thread Brandon Allbery
And the "exit" should be redundant in that case. On Mon, Sep 3, 2018 at 1:29 PM Parrot Raiser <1parr...@gmail.com> wrote: > But this: > > perl6 -e 'shell("vim sample"); exit' > > behaves acceptably. > > On 9/3/18, Parrot Raiser <1parr...@gmail.com> wrote: > > Is Windows really that brain-dead?

Re: Handing over control

2018-09-03 Thread Parrot Raiser
But this: perl6 -e 'shell("vim sample"); exit' behaves acceptably. On 9/3/18, Parrot Raiser <1parr...@gmail.com> wrote: > Is Windows really that brain-dead? Pity it has to sabotage everyone else. > > This invokes vim successfully, but leaves an ugly error message around: > > perl6 -e 'exit

Re: Handing over control

2018-09-03 Thread Brandon Allbery
fork/exec is a Unix-specific idiom. shell throws (well, produces a Failure that is thrown when sunk), so you don't need the exit. On Mon, Sep 3, 2018 at 1:10 PM Parrot Raiser <1parr...@gmail.com> wrote: > Is Windows really that brain-dead? Pity it has to sabotage everyone else. > > This invokes

Re: Handing over control

2018-09-03 Thread Parrot Raiser
Is Windows really that brain-dead? Pity it has to sabotage everyone else. This invokes vim successfully, but leaves an ugly error message around: perl6 -e 'exit shell("vim sample")' No such method 'Int' for invocant of type 'Proc' in block at -e line 1 On 9/3/18, Brandon Allbery wrote: >

Re: Handing over control

2018-09-03 Thread Brandon Allbery
It's not basic: Windows doesn't have it at all, it has to be simulated. The intent is that system dependent things like that should be external to the core. On Mon, Sep 3, 2018 at 12:56 PM Parrot Raiser <1parr...@gmail.com> wrote: > Thanks for the reply. That didn't show up with any search

Re: Handing over control

2018-09-03 Thread Parrot Raiser
Thanks for the reply. That didn't show up with any search string I could contrive. It's disappointing to lose a basic ability like handing over control to another program. On 9/3/18, Elizabeth Mattijsen wrote: > https://docs.perl6.org/language/5to6-perlfunc#exec > >> On 3 Sep 2018, at 18:41,

Re: Appropriate last words

2018-09-03 Thread Stephen Wilcoxon
Why the change in die handling between Perl 5 and 6? Suppressing line numbers with newline was very handy. Alternatively, adding some sort of directive would be more straight-forward (at least for Perl 5 users moving to Perl 6). On Mon, Sep 3, 2018 at 11:32 AM, Elizabeth Mattijsen wrote: >

Re: Handing over control

2018-09-03 Thread Elizabeth Mattijsen
https://docs.perl6.org/language/5to6-perlfunc#exec > On 3 Sep 2018, at 18:41, Parrot Raiser <1parr...@gmail.com> wrote: > > In Perl 5, a program can hand over control to another with exec: > https://perldoc.perl.org/functions/exec.html > e.g perl -e 'exec vim' opens up vim > > What's the Perl

Handing over control

2018-09-03 Thread Parrot Raiser
In Perl 5, a program can hand over control to another with exec: https://perldoc.perl.org/functions/exec.html e.g perl -e 'exec vim' opens up vim What's the Perl 6 equivalent?

Re: Appropriate last words

2018-09-03 Thread Elizabeth Mattijsen
note “message”; exit > On 3 Sep 2018, at 18:03, Parrot Raiser <1parr...@gmail.com> wrote: > > perl6 -v > This is Rakudo Star version 2018.06 built on MoarVM version 2018.06 > implementing Perl 6.c. > > In Perl 5: > die "Message"; outputs Message, followed by the program line number. > die

Appropriate last words

2018-09-03 Thread Parrot Raiser
perl6 -v This is Rakudo Star version 2018.06 built on MoarVM version 2018.06 implementing Perl 6.c. In Perl 5: die "Message"; outputs Message, followed by the program line number. die "Message\n" outputs Message without further ado. Perl 6 "die" produces line numbers regardless of the line

Re: Missing or wrong version of dependency

2018-09-03 Thread Elizabeth Mattijsen
Perhaps it’s better to make this a zef issue on Github? > On 3 Sep 2018, at 02:50, Peter Scott wrote: > > Hullo. I am on > > CentOS Linux release 7.5.1804 (Core) > > and I did > > yum install rakudo[rakudo-0.2018.04-1.el7] > yum install rakudo-zef