From b9b15816e85c3bc596a44650837af1c687fd6398 Mon Sep 17 00:00:00 2001 From: "Michael Hirsch, Ph.D" Date: Sun, 28 Jun 2020 12:56:09 -0400 Subject: syntax.md: document version_compare ambiguities [skip ci] --- docs/markdown/Syntax.md | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'docs/markdown/Syntax.md') diff --git a/docs/markdown/Syntax.md b/docs/markdown/Syntax.md index 002ed01..7cb39e9 100644 --- a/docs/markdown/Syntax.md +++ b/docs/markdown/Syntax.md @@ -281,6 +281,14 @@ is_new = version.version_compare('>=2.0') # Supports the following operators: '>', '<', '>=', '<=', '!=', '==', '=' ``` +Meson version comparison conventions include: + +```meson +'3.6'.version_compare('>=3.6.0') == false +``` + +It is best to be unambiguous and specify the full revision level to compare. + ## Arrays Arrays are delimited by brackets. An array can contain an arbitrary number of objects of any type. -- cgit v1.1