Ruslan Mustakov
b826f85731
Remove unused oids import from asyncdispatch ( #5811 )
2017-05-14 15:07:33 +02:00
Araq
321d1f8b65
Merge branch 'devel' of github.com:nim-lang/Nim into devel
2017-05-14 15:00:34 +02:00
Mice Pápai
f5717490d9
tut1.rst: Fix alignment, Change Subrange to MySubrange for clarity ( #5798 )
...
* tut1.rst: Fix alignment
* tut1.rst: Change Subrange to MySubrange for clarity
2017-05-13 21:52:19 +02:00
Simon Krauter
40e9e751f0
Extend documenation of formatFloat() ( #5799 )
...
Added line: "If ``precision == 0``, it tries to format it nicely." (copied from formatBiggestFloat())
2017-05-13 21:50:44 +02:00
Zahary Karadjov
672c24e4b8
fix affecting templates with explicit generic params
2017-05-13 20:48:44 +03:00
Zahary Karadjov
05bfa47996
fix tinvalidinout
2017-05-13 18:51:28 +03:00
Zahary Karadjov
cdb011afdc
attempt to fix a compilation problem caused by nimcache
2017-05-13 15:46:47 +03:00
Zahary Karadjov
b428da2cc2
work-around for defining imported types with weak covariance
2017-05-13 15:46:08 +03:00
Zahary Karadjov
0aede22e87
enforce the covariance rules for user-defined generic types
2017-05-13 14:38:07 +03:00
Zahary Karadjov
7e0c66ffe7
manual additions for the covariant generic parameters
2017-05-12 21:27:32 +03:00
Zahary Karadjov
2106598d30
explain covariance in the manual
2017-05-12 18:43:14 +03:00
Zahary Karadjov
f4e73344d4
covariance for arrays and sequences
2017-05-12 18:42:46 +03:00
Yuriy Glukhov
534d8a6b59
Fixed syslocks for ios ( #5804 )
2017-05-12 12:11:58 +02:00
Zahary Karadjov
a802d72452
doh, forgot to add all files in the previous commit
2017-05-12 12:46:09 +03:00
Ruslan Mustakov
77cadd07f9
Fix atomicInc under vcc, C++, amd64 ( #5809 )
...
Also, fixed inconsistent behaviour of atomicInc on vcc. Previously
it would return the old value, while it must return the new value.
Fixes : #5808
2017-05-12 11:24:45 +02:00
Parashurama
2e420dfa38
fixes multiple nil-checks for methods ( #5806 )
2017-05-12 11:21:43 +02:00
Zahary Karadjov
597ea08815
covariance for generic importc types
2017-05-12 11:46:25 +03:00
Ruslan Mustakov
29507d2491
Consider optNoCppExceptions in blockLeaveActions ( #5801 )
2017-05-11 22:30:48 +02:00
Andreas Rumpf
1a29069ece
attempt to make nimsuggest work with choosenim
2017-05-11 17:00:50 +02:00
Dominik Picheta
e17770682c
Merge pull request #5797 from knockoutMice/patch-1
...
Fix a typo in the Result variable block
2017-05-10 13:41:59 +01:00
Mice Pápai
2e7551f17e
Fix a typo in the Result variable block
2017-05-10 14:04:38 +02:00
Yuriy Glukhov
6e0e3b75cf
Fixed const sets in JS ( #5790 )
2017-05-10 09:29:30 +02:00
Araq
ae7fd0fced
Merge branch 'devel' of github.com:nim-lang/Nim into devel
2017-05-09 17:26:54 +02:00
Dominik Picheta
fa3436fb65
Deprecate osproc.select(). Refs #90 .
2017-05-09 15:14:47 +01:00
Zahary Karadjov
5e368f3639
support for external types with covariant generic params
2017-05-08 21:45:37 +03:00
Dominik Picheta
2edcd07031
Merge pull request #5782 from cdunn2001/setGlobalDispatcher
...
setGlobalDispatcher()
2017-05-08 15:29:41 +01:00
Christopher Dunn
2670a6f8a5
setGlobalDispatcher()
2017-05-07 22:07:07 -05:00
Andreas Rumpf
a3e0a7ebbb
Merge branch 'devel' of github.com:nim-lang/Nim into devel
2017-05-06 11:53:22 +02:00
Andreas Rumpf
c22e0d414d
fixes an internal compiler error when json.to is used wrongly
2017-05-06 11:53:15 +02:00
Andreas Rumpf
6c7d2ce8fb
disable fragile parts of thttpclient.nim
2017-05-04 22:37:07 +02:00
Ruslan Mustakov
78315792d3
Implement 'take' for Table and TableRef ( #5773 )
2017-05-04 22:33:52 +02:00
Andreas Rumpf
73b7edf9de
Merge branch 'devel' of github.com:nim-lang/Nim into devel
2017-05-04 22:25:37 +02:00
Andreas Rumpf
c066932635
added IP v6 parsing tests
2017-05-04 22:25:29 +02:00
Matt Riggott
c24dc7944a
Add space to fix RST in captureBetween docs ( #5769 )
2017-05-04 20:09:24 +02:00
Araq
79b12faf9e
nimgrab tool bugfix: don't divide by zero
2017-05-04 20:03:07 +02:00
Araq
202ecdeee8
Merge branch 'endragor-fix-wrap-connected-socket' into devel
2017-05-04 20:01:00 +02:00
Andreas Rumpf
2d91c04f4e
added many tests concerning IP v6 parsing
2017-05-04 16:03:22 +02:00
Andreas Rumpf
764cc02177
Merge branch 'devel' into araq
2017-05-04 16:02:50 +02:00
Ruslan Mustakov
e0059287bb
Add 'hostname' param to wrapConnectedSocket
2017-05-04 16:27:08 +07:00
Andreas Rumpf
c1aa973758
Merge branch 'devel' of github.com:nim-lang/Nim into devel
2017-05-04 10:58:21 +02:00
Dominik Picheta
27b571dd95
Fix different types for findExe's params across OS'.
2017-05-02 22:39:39 +01:00
Ruslan Mustakov
ecf278c467
Implement dial, support IPv6 in httpclient ( #5763 )
...
* Implement dial, support IPv6 in httpclient
Added ``dial`` procedure to networking modules: ``net``, ``asyncdispatch``,
``asyncnet``. It merges socket creation, address resolution, and connection
into single step. When using ``dial``, you don't have to worry about
IPv4 vs IPv6 problem.
Fixed addrInfo loop in connect to behave properly.
Previously it would stop on first non-immediate failure, instead of
continuing and trying the remaining addresses.
Fixed newAsyncNativeSocket to raise proper error if socket creation
fails.
Fixes : #3811
* Check domain during connect() only on non-Windows
This is how it was in the previous implementation of connect().
* Call 'osLastError' before 'close' in net.dial
* Record osLastError before freeAddrInfo in net.dial
* Add missing docs for 'dial' proc
* Optimize dial to create one FD per domain, add tests
And make async IPv6 servers work on Windows.
* Add IPv6 test to uri module
* Fix getAddrString error handling
2017-05-02 09:25:50 +02:00
Araq
6377b52d8e
Merge branch 'devel' of github.com:nim-lang/Nim into devel
2017-05-02 01:24:19 +02:00
Araq
bea07a2c5c
fixes #5752
2017-05-02 01:24:10 +02:00
Andreas Rumpf
962d03d671
isDeepConstExpr helper can handle nkRange
2017-05-01 09:31:29 +02:00
Andreas Rumpf
56a5c249c9
JS codegen: produce better code for constant sets
2017-05-01 09:30:56 +02:00
Zahary Karadjov
2a34552596
fix 5756
2017-04-30 22:28:20 +03:00
Zahary Karadjov
622100adb6
close #5757
2017-04-30 21:57:13 +03:00
Jonathan Arnett
eb9721a804
Added getConfigDir changes to breaking changes doc
2017-04-28 14:34:24 -04:00
Jonathan Arnett
a9de33643b
Appended to comment
2017-04-28 14:33:23 -04:00