X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=blobdiff_plain;f=lib%2Ffeature.pm;h=91e4562ea6f2d09ebd656eb538f1389dd56d55a0;hb=d9f30342f9de4793189d81b85a5e32057393e428;hp=f8e28622409dad3275b72c118282ab1ac02cf0f4;hpb=76d78319f4afd6fb51d3c21ce508a99490772708;p=p5sagit%2Fp5-mst-13.2.git diff --git a/lib/feature.pm b/lib/feature.pm index f8e2862..91e4562 100644 --- a/lib/feature.pm +++ b/lib/feature.pm @@ -1,20 +1,22 @@ package feature; -our $VERSION = '1.01'; +our $VERSION = '1.10'; # (feature name) => (internal name, used in %^H) my %feature = ( switch => 'feature_switch', - "~~" => "feature_~~", say => "feature_say", err => "feature_err", state => "feature_state", ); my %feature_bundle = ( - "5.10" => [qw(switch ~~ say err state)], + "5.10.0" => [qw(switch say err state)], ); - +# latest version here +# keep it harcoded until we actually bump the version number to 5.10 +$feature_bundle{"5.10"} = $feature_bundle{"5.10.0"}; +#$feature_bundle{"5.10"} = $feature_bundle{sprintf("%vd",$^V)}; # TODO: # - think about versioned features (use feature switch => 2) @@ -76,13 +78,6 @@ given/when construct. See L for details. -=head2 The '~~' feature - -C tells the compiler to enable the Perl 6 -smart match C<~~> operator. - -See L for details. - =head2 The 'say' feature C tells the compiler to enable the Perl 6 @@ -110,8 +105,11 @@ See L for details. It's possible to load a whole slew of features in one go, using a I. The name of a feature bundle is prefixed with a colon, to distinguish it from an actual feature. At present, the -only feature bundle is C, which is equivalent -to C. +only feature bundles are C and C, +which both are equivalent to C. + +In the forthcoming 5.10.X perl releases, C will be +equivalent to the latest C. =cut