From 0e027c9616acfbcfec7fe2eafe8c5f774c8c4116 Mon Sep 17 00:00:00 2001 From: Tim Date: Tue, 30 May 2017 11:17:24 +0100 Subject: Document that user-defined functions and methods are unsupported Fixes #1870 --- docs/markdown/Syntax.md | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'docs/markdown') diff --git a/docs/markdown/Syntax.md b/docs/markdown/Syntax.md index 5bbae7e..1000766 100644 --- a/docs/markdown/Syntax.md +++ b/docs/markdown/Syntax.md @@ -317,3 +317,8 @@ Most source trees have multiple subdirectories to process. These can be handled test_data_dir = 'data' subdir('tests') ``` + +User-defined functions and methods +-- + +Meson does not currently support user-defined functions or methods. The addition of user-defined functions would make Meson Turing-complete. Avoiding this greatly simplifies the implementation. If because of this limitation you find yourself copying and pasting code a lot you may be able to use a [`foreach` loop instead](#foreach-statements). -- cgit v1.1