Created
June 27, 2014 03:57
-
-
Save JeffBezanson/e95540b795a6457f1c63 to your computer and use it in GitHub Desktop.
This file contains hidden or 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
# as a string | |
"function check_new_version(existing::Vector{VersionNumber}, ver::VersionNumber) | |
@assert issorted(existing) | |
for v in [v\"0\", v\"0.0.1\", v\"0.1\", v\"1\"] | |
lowerbound(v) <= ver <= v && return | |
end | |
error(\"$ver is not a valid initial version (try 0.0.0, 0.0.1, 0.1 or 1.0)\") | |
end" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
I think you need a backslash on the
$
beforever
in the string interpolation as well - without it, I get an error stating "ver is not defined" when runningparse
on this =)