From 025462801687f03f6085772aecddab6bd135ae1b Mon Sep 17 00:00:00 2001 From: jpekkila Date: Wed, 25 Mar 2020 11:28:30 +0000 Subject: [PATCH] Updated API specification. The DSL syntax allows only C++-style casting. --- .../API_specification_and_user_manual.md | 2 ++ 1 file changed, 2 insertions(+) diff --git a/doc/Astaroth_API_specification_and_user_manual/API_specification_and_user_manual.md b/doc/Astaroth_API_specification_and_user_manual/API_specification_and_user_manual.md index b19add5..6411f85 100644 --- a/doc/Astaroth_API_specification_and_user_manual/API_specification_and_user_manual.md +++ b/doc/Astaroth_API_specification_and_user_manual/API_specification_and_user_manual.md @@ -492,6 +492,8 @@ All real number literals are converted automatically to the correct precision. I (1.0f * 1.0d) // 1.0f is implicitly cast to double and the multiplication is done in double precision. ``` +> **Note:** Only C++-style casting is currently supported. For example, `float(1.0)` is valid but `(float) 1.0` gives a syntax error. + ## Control Flow Conditional statements are expressed with the `if-else` construct. Unlike in C and C++, we require