Skip to content

Commit 43f3fd0

Browse files
authored
Merge pull request #67 from PlutoLang/0.11.1
0.11.1
2 parents 3c9f92c + 30f6fa1 commit 43f3fd0

File tree

2 files changed

+21
-0
lines changed

2 files changed

+21
-0
lines changed

docs/Changelog.md

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,22 @@ sidebar_position: 13
44

55
This page contains the changelogs from all [releases of Pluto](https://github.com/PlutoLang/Pluto/releases).
66

7+
## 0.11.1
8+
- Improved implicit-global coverage for multiple assignments within the same statement
9+
- Fixed preprocessor aliases not taking multi-token arguments (e.g. function calls)
10+
- Fixed compile-time concatenation shadowing optional parentheses
11+
- Fixed `extends` not inheriting `__pairs`
12+
13+
Standard Library:
14+
- socket.bind now returns the created coroutine and errors are raised to the caller instead of the scheduler
15+
- Fixed socket.listen/socket.bind not failing for bound TCP ports on Windows
16+
- Fixed `os.sleep(1)` taking considerably longer than 1ms on Windows
17+
- Fixed `scheduler:run` yielding after the final tick
18+
- Fixed `dumpvar` and `exportvar`'s quoted strings not escaping bytes that would make it invalid UTF-8
19+
- Fixed filesystem errors on Windows not being UTF-8 encoded when the user has a non-English locale
20+
21+
You can view the full commit log [here](https://github.com/PlutoLang/Pluto/compare/0.11.0...0.11.1).
22+
723
## 0.11.0
824
- Added preprocessor aliases (`$alias`)
925
- Added compile-time evaluated statement `$assert`

docs/Runtime Environment/Socket.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,11 @@ A convenience function that wraps `socket.listen`, automatically accepting new c
2727
1. A [scheduler](Scheduler) instance.
2828
2. Either an int with the port to listen on or a string such as `1.2.3.4:567` for systems with multiple public-facing addresses.
2929
3. The callback function that will be called in a new coroutine for each client socket.
30+
#### Returns
31+
The coroutine that was created and added to the scheduler.
32+
#### Errors
33+
Raises an error to the caller if the port could not be bound.
34+
3035
```pluto norun
3136
local { scheduler, socket } = require "*"
3237

0 commit comments

Comments
 (0)