Skip to content

Instantly share code, notes, and snippets.

@usev6
Created January 28, 2023 18:44
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save usev6/559c96ddc10b5bb81e58fab0aa20ff65 to your computer and use it in GitHub Desktop.
Save usev6/559c96ddc10b5bb81e58fab0aa20ff65 to your computer and use it in GitHub Desktop.
Version.new different strings for v6.e.PREVIEW
$ 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