Add Dynamic::as_unit.

This commit is contained in:
Stephen Chung
2021-03-05 13:34:58 +08:00
parent 88943915a7
commit 2052942d9d
3 changed files with 35 additions and 27 deletions

View File

@@ -34,6 +34,7 @@ Enhancements
* `range` function now supports negative step and decreasing streams (i.e. to < from).
* More information is provided to the error variable captured by the `catch` statement in an _object map_.
* Previously, `private` functions in an `AST` cannot be called with `call_fn` etc. This is inconvenient when trying to call a function inside a script which also serves as a loadable module exporting part (but not all) of the functions. Now, all functions (`private` or not) can be called in an `AST`. The `private` keyword is relegated to preventing a function from being exported.
* `Dynamic::as_unit` just for completeness sake.
Version 0.19.13