1.5 KiB
v0.20.2 - 2019-07-17
Changes affecting backwards compatibility
-
All
strutils.rfindprocs now takestartandlastlikestrutils.findwith the same data slice/index meaning. This is backwards compatible for calls not changing therfindstartparameter from its default. (#11487)In the unlikely case that you were using
rfind X, start=N, orrfind X, N, then you need to change that torfind X, last=Norrfind 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:nimBinaryStdFilesfor a transition period.
Breaking changes in the standard library
- Mac OS X / BSD: TSa_Family is now the
uint8type, so type conversions likex.sin_family = uint16 toInt(nativesockets.AF_INET)need to be changed intox.sin_family = TSa_Family toInt(nativesockets.AF_INET).
Breaking changes in the compiler
Library additions
toOpenArrayis 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)