Class a.version
algorithm library version
-
a.version
-
algorithm library version
Fields:
- major
version major number
- minor
version minor number
- third
version third number
- extra
version extra number
- alpha
version alphabet
-
a.version:new ([major[, minor[, third[, extra]]]])
-
constructor for algorithm library version
Parameters:
- major
integer
version major number
(optional)
- minor
integer
version minor number
(optional)
- third
integer
version third number
(optional)
- extra
integer
version extra number
(optional)
Returns:
a.version
algorithm library version userdata
-
a.version:init ([major[, minor[, third[, extra]]]])
-
initialize for algorithm library version
Parameters:
- major
integer
version major number
(optional)
- minor
integer
version minor number
(optional)
- third
integer
version third number
(optional)
- extra
integer
version extra number
(optional)
Returns:
a.version
algorithm library version userdata
-
a.version:parse (version)
-
parse version string to version
Parameters:
- version
string
string to be parsed
Returns:
a.version
algorithm library version userdata
-
a.version:cmp (that)
-
compare the version self with the version that
Parameters:
Returns:
-
integer
<0 version self < version that
-
integer
>0 version self > version that
-
integer
0 version self == version that
-
a.version:lt (that)
-
version self is less than version that
Parameters:
Returns:
bool
result of comparison
-
a.version:gt (that)
-
version self is greater than version that
Parameters:
Returns:
bool
result of comparison
-
a.version:le (that)
-
version self is less than or equal to version that
Parameters:
Returns:
bool
result of comparison
-
a.version:ge (that)
-
version self is greater than or equal to version that
Parameters:
Returns:
bool
result of comparison
-
a.version:eq (that)
-
version self is equal to version that
Parameters:
Returns:
bool
result of comparison
-
a.version:ne (that)
-
version self is not equal to version that
Parameters:
Returns:
bool
result of comparison