ddn.ddn¶
Core version information module for the DDN library.
Module Declaration¶
Manifest Constants¶
MAJOR¶
Major version number of the DDN library.
MINOR¶
Minor version number of the DDN library.
PATCH¶
Patch version number of the DDN library.
Functions¶
ddnVersion¶
Returns the DDN library version as a single integer.
The version is encoded as: PATCH + MINOR * 1_000 + MAJOR * 1_000_000
Returns:
int — The encoded version number.
Attributes:
nothrow @nogc pure
Example:
import ddn.ddn;
int ver = ddnVersion();
// ver == 2_000_000 for version 2.0.0
// Version comparison
if (ddnVersion() >= 2_000_000) {
// Use features from version 2.0.0+
}
ddnVersionString¶
Returns the DDN library version as a human-readable string.
Returns:
string — The version string in "MAJOR.MINOR.PATCH" format.
Attributes:
nothrow @nogc pure
Example:
See Also¶
- ddn.util.semver — Full semantic versioning implementation