File tree 1 file changed +31
-0
lines changed 1 file changed +31
-0
lines changed Original file line number Diff line number Diff line change
1
+ ---
2
+ title : Release 5.6.0
3
+ tags : release
4
+ ---
5
+ ## [ Release 5.6.0] ( https://github.com/ChaiScript/ChaiScript/releases/tag/v5.6.0 " Release 5.6.0 ")
6
+
7
+ ### Changes since 5.5.1
8
+ * Throw exception on integer divide by 0
9
+ * Add optional type specification to function declarations
10
+
11
+ ```
12
+ def func(int i, j, double k) {
13
+ // i must be an int.
14
+ // j can be anything
15
+ // k must be a double
16
+ // normal conversion rules still apply
17
+ }
18
+ ```
19
+ * Many minor fixes for compiler warnings
20
+ * Add support for ` std::future ` and ` std::async `
21
+ ```
22
+ var f := async(someFunction);
23
+ var f2 := async(someFunction2);
24
+
25
+ // someFunction and someFunction2 are running in parallel now
26
+ f.get();
27
+ f2.get();
28
+ ```
29
+ * Fully support r-value returns, supporting move-only objects and reducing object copies
30
+
31
+
You can’t perform that action at this time.
0 commit comments