v1.4.1
This is primarily a bug-fix version which fixes a large number of bugs.
Bug fixes
- Expressions such as
x = x + 1no longer panics. - Padding arrays with another array via
padno longer loops indefinitely. chopfor arrays and BLOB's now works properly.set_bitfor bit-flags with negative index now works correctly.- Misnamed
paramsfieldnamein the JSON output ofEngine::gen_fn_metadata_to_jsonis fixed (was incorrectly namedtype). - Fixes a potential
unsafeviolation inforloop. - Missing
to_hex,to_octalandto_binaryfori128andu128are added. removefor arrays and BLOB's now treat negative index correctly.parse_intnow works properly for negative numbers.Engine::gen_fn_signaturesnow generates signatures for external packages registered viaEngine::register_global_module.\r\npairs are now recognized correctly for doc-comments.
Enhancements
- Formatting of return types in functions metadata info is improved.
- Use
SmartStringforScopevariable names and removeunsafelifetime casting. - Functions in the standard library now have doc-comments (which can be obtained via
Engine::gen_fn_metadata_to_json). getandsetmethods are added to arrays, BLOB's, object maps and strings.