Repository navigation
v.0.19.3
This version adds the try ... catch statement to catch errors and exceptions. It also streamlines some of the advanced API's.
Version 0.19.3 released to crates.io.
Breaking changes
EvalAltResult::ErrorReadingScriptFileis removed in favor of the newEvalAltResult::ErrorSystem.EvalAltResult::ErrorLoopBreakis renamed toEvalAltResult::LoopBreak.Engine::register_raw_fnandFnPtr::call_dynamicfunction signatures have changed.- Callback signatures to
Engine::on_varandEngine::register_custom_syntaxhave changed. EvalAltResult::ErrorRuntimenow wraps aDynamicinstead of a string.- Default call stack depth for
debugbuilds is reduced to 8 (from 12) because it keeps overflowing the stack in GitHub CI! - Keyword
threadis reserved.
New features
- The plugins system is enhanced to support functions taking a
NativeCallContextas the first parameter. throwstatement can now throw any value instead of just text strings.- New
try...catchstatement to catch exceptions.
Enhancements
- Calling
evalorFnin method-call style, which is an error, is now caught during parsing. func!()call style is valid even underno_closurefeature.