File tree Expand file tree Collapse file tree 1 file changed +14
-9
lines changed Expand file tree Collapse file tree 1 file changed +14
-9
lines changed Original file line number Diff line number Diff line change @@ -491,18 +491,23 @@ class HLL::Compiler does HLL::Backend::Default {
491
491
}
492
492
493
493
method version () {
494
- my $ version := % ! config <version >;
495
- my $ backver := $ ! backend . version_string();
496
- my $ language := $ ! language ;
497
- if $ language eq ' perl6' { # XXX This hardwired info needs to come from somewhere else
498
- nqp :: say (" This is rakudo version $ version built on $ backver implementing Perl v6.b." );
499
- }
500
- else {
501
- nqp :: say (" This is $ language version $ version built on $ backver ." );
502
- }
494
+ my $ version := % ! config <version >;
495
+ my $ backver := $ ! backend . version_string();
496
+ my $ implementation := self . implementation();
497
+ my $ language_name := self . language_name();
498
+ if nqp :: can (self , ' language_version' ) {
499
+ nqp :: say (" This is $ implementation version $ version built on $ backver\n " ~
500
+ " implementing $ language_name " ~ self . language_version() ~ " ." );
501
+ }
502
+ else {
503
+ nqp :: say (" This is $ implementation version $ version built on $ backver" );
504
+ }
503
505
nqp ::exit(0 );
504
506
}
505
507
508
+ method implementation () { $ ! language }
509
+ method language_name () { $ ! language }
510
+
506
511
method show-config () { self . verbose-config(); }
507
512
508
513
method verbose-config () {
You can’t perform that action at this time.
0 commit comments