8000 Add release notes for 5.6.0 · mlamby/chaiscript.github.io@7748ea7 · GitHub
[go: up one dir, main page]

Skip to content

Commit 7748ea7

Browse files
committed
Add release notes for 5.6.0
1 parent f41cf2c commit 7748ea7

File tree

1 file changed

+31
-0
lines changed

1 file changed

+31
-0
lines changed
Lines changed: 31 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,31 @@
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+

0 commit comments

Comments
 (0)
0