More fixes

This commit is contained in:
Arseny Kapoulkine 2022-03-29 13:10:42 -07:00
parent f22211ed77
commit 8c5b73e022
4 changed files with 7 additions and 6 deletions

View file

@ -18,6 +18,7 @@ This document tracks unimplemented RFCs.
## Sealed/unsealed typing changes
[RFC: Only strip optional properties from unsealed tables during subtyping](https://github.com/Roblox/luau/blob/master/rfcs/unsealed-table-subtyping-strips-optional-properties.md)
[RFC: Unsealed table assignment creates an optional property](https://github.com/Roblox/luau/blob/master/rfcs/unsealed-table-assign-optional-property.md)
**Status**: Implemented but not fully rolled out yet.

View file

@ -1,11 +1,11 @@
# bit32.countlz/countrz
**Status**: Implemented
## Summary
Add bit32.countlz (count left zeroes) and bit32.countrz (count right zeroes) to accelerate bit scanning
**Status**: Implemented
## Motivation
All CPUs have instructions to determine the position of first/last set bit in an integer. These instructions have a variety of uses, the popular ones being:

View file

@ -1,11 +1,11 @@
# coroutine.close
**Status**: Implemented
## Summary
Add `coroutine.close` function from Lua 5.4 that takes a suspended coroutine and makes it "dead" (non-runnable).
**Status**: Implemented
## Motivation
When implementing various higher level objects on top of coroutines, such as promises, it can be useful to cancel the coroutine execution externally - when the caller is not

View file

@ -1,11 +1,11 @@
# Relaxing type assertions
**Status**: Implemented
## Summary
The way `::` works today is really strange. The best solution we can come up with is to allow `::` to convert between any two related types.
**Status**: Implemented
## Motivation
Due to an accident of the implementation, the Luau `::` operator can only be used for downcasts and casts to `any`.