AST::iter_functions now returns an iterator instead of taking a closure.
Module::get_script_function_by_signature renamed to Module::get_script_fn and returns &<Shared<ScriptFnDef>>.
Module::num_fn, Module::num_var and Module::num_iter are removed and merged into Module::count.
The merge_namespaces parameter to Module::eval_ast_as_new is removed and now defaults to true.
GlobalFileModuleResolver is removed because its performance gain over the FileModuleResolver is no longer very significant.
The following EvalAltResult variants are removed and merged into EvalAltResult::ErrorMismatchDataType: ErrorCharMismatch, ErrorNumericIndexExpr, ErrorStringIndexExpr, ErrorImportExpr, ErrorLogicGuard, ErrorBooleanArgMismatch
Scope::iter_raw returns an iterator with an additional field indicating whether the variable is constant or not.
rhai::ser and rhai::de namespaces are merged into rhai::serde.
New reserved symbols: ++, --, .., ....
Callback signature for custom syntax implementation function is changed to allow for more flexibility.
Default call stack depth for debug builds is reduced to 12 (from 16).
Precedence for ~ is raised, while in is moved below logic comparison operators.
Dependabot will resolve any conflicts with this PR as long as you don't alter it yourself. You can also trigger a rebase manually by commenting @dependabot rebase.
Dependabot commands and options
You can trigger Dependabot actions by commenting on this PR:
- `@dependabot rebase` will rebase this PR
- `@dependabot recreate` will recreate this PR, overwriting any edits that have been made to it
- `@dependabot merge` will merge this PR after your CI passes on it
- `@dependabot squash and merge` will squash and merge this PR after your CI passes on it
- `@dependabot cancel merge` will cancel a previously requested merge and block automerging
- `@dependabot reopen` will reopen this PR if it is closed
- `@dependabot close` will close this PR and stop Dependabot recreating it. You can achieve the same result by closing it manually
- `@dependabot ignore this major version` will close this PR and stop Dependabot creating any more for this major version (unless you reopen the PR or upgrade to it yourself)
- `@dependabot ignore this minor version` will close this PR and stop Dependabot creating any more for this minor version (unless you reopen the PR or upgrade to it yourself)
- `@dependabot ignore this dependency` will close this PR and stop Dependabot creating any more for this dependency (unless you reopen the PR or upgrade to it yourself)
Bumps rhai from 0.18.3 to 0.19.3.
Release notes
Sourced from rhai's releases.
... (truncated)
Changelog
Sourced from rhai's changelog.
... (truncated)
Commits
caa95d8
Merge pull request #266 from schungx/master2c7c719
Minor cleanup before release.e89d12c
Reserve thread keyword.3660e42
Refactor try/catch code.93966e7
Merge pull request #265 from schungx/masterad60db5
Reduce max fn call level.ce03a4f
Fix throw test.44dc5f9
Fix serde feature.07bdb82
Add try-catch.5ee9dfc
1) Change namespaces to iter_namespacesDependabot will resolve any conflicts with this PR as long as you don't alter it yourself. You can also trigger a rebase manually by commenting
@dependabot rebase
.Dependabot commands and options
You can trigger Dependabot actions by commenting on this PR: - `@dependabot rebase` will rebase this PR - `@dependabot recreate` will recreate this PR, overwriting any edits that have been made to it - `@dependabot merge` will merge this PR after your CI passes on it - `@dependabot squash and merge` will squash and merge this PR after your CI passes on it - `@dependabot cancel merge` will cancel a previously requested merge and block automerging - `@dependabot reopen` will reopen this PR if it is closed - `@dependabot close` will close this PR and stop Dependabot recreating it. You can achieve the same result by closing it manually - `@dependabot ignore this major version` will close this PR and stop Dependabot creating any more for this major version (unless you reopen the PR or upgrade to it yourself) - `@dependabot ignore this minor version` will close this PR and stop Dependabot creating any more for this minor version (unless you reopen the PR or upgrade to it yourself) - `@dependabot ignore this dependency` will close this PR and stop Dependabot creating any more for this dependency (unless you reopen the PR or upgrade to it yourself)