0.4.0 pre-release
Pre-release
Pre-release
This release is a draft.
Language
- Add
continue
keyword - #822 - Add
as
:import "..." for Name as OtherName
- #775 - Add Support positive sign in scientific notation - #706
- Add Fiber.try(value) to complement Fiber.call(value) - #835
- Allow
.
to be on a different line (for fluent/builder APIs) - 4c496c5
Modules
- Random: Random.sample optimizations - #716
- List:
- Num:
Fixes
- Fix stack corruption related to
Fn
calls - #807 - Fix a byte offset bug in CODE_IMPORT_VARIABLE - 28ad8aa
- Fix some stack corruptions related to multiple wrenInterpret calls - #730
- Fixed crash when GC collects module during import 2ce421e
- Fix
Bool
,Num
andNull
allowing subclassing, which is invalid - #831
API
- BREAKING: Add
userData
towrenReallocateFn
- #788 - BREAKING: Add
WrenLoadModuleResult
which has aonComplete
callback, allowing freeing module strings - #778 - Add
wrenHasVariable
andwrenHasModule
queries, for use withwrenGetVariable
- 182ca90 - Add
wrenSetListElement
to complementwrenGetListElement
, and allow negative index for both - 97ebcc7 - Add Map functions to API - #725
- wrenSetSlotNewMap
- wrenGetMapCount
- wrenGetMapContainsKey
- wrenGetMapValue
- wrenSetMapValue
- wrenRemoveMapValue
Other
- build; add util/generate_docs.py for regenerating project files
- vm; Allow computed goto when using clang on Windows
- vm; WREN_MAX_TEMP_ROOTS default is 8 (instead of 5)
- vm; GC debug times are printed in milliseconds, not seconds