Created
January 28, 2023 18:44
-
-
Save usev6/559c96ddc10b5bb81e58fab0aa20ff65 to your computer and use it in GitHub Desktop.
Version.new different strings for v6.e.PREVIEW
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$ git diff | |
diff --git a/src/core.c/Version.pm6 b/src/core.c/Version.pm6 | |
index 2c8b03300..81eb22ed4 100644 | |
--- a/src/core.c/Version.pm6 | |
+++ b/src/core.c/Version.pm6 | |
@@ -129,6 +129,7 @@ class Version { | |
} | |
multi method new(Version: Str() $s) { | |
+ nqp::say("DEBUG_01 new(Version: Str() \$s) called with argument '$s'"); | |
nqp::if( | |
nqp::iseq_s($s,'6.d'), | |
$v6d, | |
$ ./rakudo-m -e 'use v6.e.PREVIEW' | |
DEBUG_01 new(Version: Str() $s) called with argument '6.e.PREVIEW' | |
DEBUG_01 new(Version: Str() $s) called with argument '3.PREVIEW' | |
DEBUG_01 new(Version: Str() $s) called with argument '3.PREVIEW' | |
$ ./rakudo-m --version | |
Welcome to Rakudo™ v2022.12-1068-g69fa6bbaf. | |
Implementing the Raku® Programming Language v6.d. | |
Built on MoarVM version 2022.12-14-gebefe2618. |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment