Added std/envvars for env vars handling (#19421)

This commit is contained in:
flywind 2022-01-20 20:55:19 +08:00 • committed by GitHub
commit 4a38092ac1
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
3 changed files with 273 additions and 2 deletions

View file

@ -36,6 +36,8 @@ becomes an alias for `addr`.
- Added `getIsoWeekAndYear` in `times` to get an ISO week number along with the corresponding ISO week-based year from a datetime.
- Added `getIsoWeeksInYear` in `times` to return the number of weeks in an ISO week-based year.
- Added `std/oserrors` for OS error reporting. Added `std/envvars` for environment variables handling.
## Language changes
- Pragma macros on type definitions can now return `nnkTypeSection` nodes as well as `nnkTypeDef`,
@ -74,8 +76,6 @@ becomes an alias for `addr`.
for the right-hand side of type definitions in type sections. Previously
they would error with "invalid indentation".
- Added `std/oserrors` for OS error reporting.
## Compiler changes
- `nim` can now compile version 1.4.0 as follows: `nim c --lib:lib --stylecheck:off compiler/nim`,