# New Ticket Created by "Carl Mäsak"
# Please include the string: [perl #122939]
# in the subject line of all future correspondence about this issue.
# <URL: https://rt.perl.org/Ticket/Display.html?id=122939 >
<pmichaud> I'm pretty sure Perl 6 defines a Version type :-)
<pmichaud> m: say v6.0.0.WHAT
<camelia> rakudo-moar d3a284: OUTPUT«(Version)»
<pmichaud> maybe we should use it. :)
<lizmat> ok, how do we *compare* the version in blead sensibly ?
<FROGGS> lizmat: you can compare versions, on?
<pmichaud> m: say v6.0.0 after v5.9.9
<camelia> rakudo-moar d3a284: OUTPUT«True»
<lizmat> m: say $*VM.version
<camelia> rakudo-moar d3a284: OUTPUT«v2014.9.14.g.0.df.2.d.6.f»
<FROGGS> m: say $*VM.version cmp v2014.10
<camelia> rakudo-moar d3a284: OUTPUT«===SORRY!=== Error while
compiling /tmp/gKuhEGsVtzMissing semicolon.at
/tmp/gKuhEGsVtz:1------> say $*VM.version cmp v2014.⏏10 [...]
<pmichaud> m: say $*VM.version after v2014.10
<camelia> rakudo-moar d3a284: OUTPUT«===SORRY!=== Error while
compiling /tmp/ZvfwZtMgabMissing semicolon.at
/tmp/ZvfwZtMgab:1------> say $*VM.version after v2014.⏏10 [...]
<FROGGS> m: say $*VM.version cmp v2014.10.0
<camelia> rakudo-moar d3a284: OUTPUT«===SORRY!=== Error while
compiling /tmp/H7htjAkmA4Missing semicolon.at
/tmp/H7htjAkmA4:1------> say $*VM.version cmp v2014.⏏10.0 [...]
<FROGGS> ?
<lizmat> yuck?
<pmichaud> m: say $*VM.version.WHAT
<camelia> rakudo-moar d3a284: OUTPUT«(Version)»
<FROGGS> m: say $*VM.version cmp Version.new('2014.10')
<camelia> rakudo-moar d3a284: OUTPUT«Less»
<FROGGS> m: say $*VM.version cmp Version.new('2014.09')
<camelia> rakudo-moar d3a284: OUTPUT«More»
<pmichaud> m: say $*VM.version after v2014.10
<camelia> rakudo-moar d3a284: OUTPUT«===SORRY!=== Error while
compiling /tmp/7wAWLodWxuMissing semicolon.at
/tmp/7wAWLodWxu:1------> say $*VM.version after v2014.⏏10 [...]
<FROGGS> that's weird
<pmichaud> feels like a rakudobug
* masak submits rakuodbug
<lizmat> that's looks like a parsing issue
<FROGGS> m: say v1.2
<camelia> rakudo-moar d3a284: OUTPUT«v1.2»
<FROGGS> m: say v10.2
<camelia> rakudo-moar d3a284: OUTPUT«===SORRY!=== Error while
compiling /tmp/WHm04xB1jmMissing semicolon.at
/tmp/WHm04xB1jm:1------> say v10.⏏2 [...]
<FROGGS> only one digit allowed??
<FROGGS> /o\ we are doomed
<FROGGS> std has 'v' <?before \d> :: <vnum> +% '.' '+'?, and we miss the ::