summary refs log tree commit diff stats
path: root/changelogs/changelog_0_20_2.md
blob: 4f09ae3c5e174a003b44cb9a7c60745552f533c7 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
# v0.20.2 - 2019-07-17


## Changes affecting backwards compatibility

- All `strutils.rfind` procs now take `start` and `last` like `strutils.find`
  with the same data slice/index meaning. This is backwards compatible for
  calls *not* changing the `rfind` `start` parameter from its default. (#11487)

  In the unlikely case that you were using `rfind X, start=N`, or `rfind X, N`,
  then you need to change that to `rfind X, last=N` or `rfind X, 0, N`. (This
  should minimize gotchas porting code from other languages like Python or C++.)

- On Windows stderr/stdout/stdin are not opened as binary files anymore. Use the switch
  `-d:nimBinaryStdFiles` for a transition period.

### Breaking changes in the standard library

- Mac OS X / BSD: TSa_Family is now the ``uint8`` type, so type
  conversions like ``x.sin_family = uint16 toInt(nativesockets.AF_INET)``
  need to be changed into ``x.sin_family = TSa_Family toInt(nativesockets.AF_INET)``.


### Breaking changes in the compiler


## Library additions

- `toOpenArray` is now available for the JS target.

## Library changes

- Fix async IO operations stalling even after socket is closed. (#11232)

- More informative error message for `streams.openFileStream`. (#11438)


## Language additions


## Language changes


### Tool changes


### Compiler changes

- Better error message for IndexError for empty containers. (#11476)

- Fix regression in semfold for old right shift. (#11477)

- Fix for passing tuples as static params to macros. (#11423)

## Bugfixes