in reply to Re: [Perl 6]: Small discoveries VI, die
in thread [Perl 6]: Small discoveries VI, die

Hi kcott,
Assuming the version number refers to a date (YYYY.MM), it looks like my copy of Perl6 is about 18 months old: perhaps the behaviour you describe is new.
Yes, the version number refers to the date (year and month).

With the latest available version of Rakudo Star / Perl 6:

This is Rakudo version 2017.07 built on MoarVM version 2017.07 implementing Perl 6.c.
I obtain exactly the same results as yours, with the presence or absence of a new line apparently making no difference to the output; and with the subroutine call stack in the output when die is called from a subroutine.

I may also have missed holli's point, but I can't see a difference.

And the documentation (https://docs.perl6.org/routine/die) says nothing on that.

Replies are listed 'Best First'.
Re^3: [Perl 6]: Small discoveries VI, die
by holli (Abbot) on Oct 22, 2017 at 16:50 UTC
    However, when I tried that with Perl6, it printed the message (with a newline where added) and the same information regardless of whether a newline had been used:
    That *is* the point. Wether or not you put a newline at the end of the argument to die, it will print a stack trace. Unlike Perl 5.


    holli

    You can lead your users to water, but alas, you cannot drown them.
      OK, thank you holli, then we agree. I guess Ken and myself misunderstood your point.
Re^3: [Perl 6]: Small discoveries VI, die
by kcott (Archbishop) on Oct 23, 2017 at 01:17 UTC

    G'day Laurent_R,

    "Yes, the version number refers to the date (year and month)."

    Thanks for the confirmation of the version number format and additional information.

    "I obtain exactly the same results as yours, ..."

    Thanks for taking the time to check that. With holli's clarification of the OP text, I'd say that issue's now resolved.

    — Ken