Commit Graph

14853 Commits

Author SHA1 Message Date
Andreas Rumpf
c8cb567938 Merge branch 'devel' of github.com:nim-lang/Nim into devel 2019-02-18 15:23:43 +01:00
Andreas Rumpf
2deb1e354f fixes #10702 (#10705)
* --define:nimQuirky exception handling for Nim; in preparation of a blog post
* make it work with latest system.nim
* make code more readable
* fixes #10702
2019-02-18 15:23:05 +01:00
Andreas Rumpf
739dc8094e make set specification more clear; refs #10524 2019-02-18 15:18:42 +01:00
Timothee Cour
1d66222901 fixes #10659 koch boot fails on windows (#10660) 2019-02-18 12:18:52 +01:00
LemonBoy
cf32d61fa5 Prevent crash on pragma templates w/ generics (#10685)
* Prevent crash on pragma templates w/ generics

* Remove incorrect call to pragma reconversion

`semOverloadedCall` may return a node with more elements than the
original nkCall node had (implicit and/or explicit generics).
2019-02-18 12:17:00 +01:00
Andreas Rumpf
b5eed8ab3f make code more readable 2019-02-18 10:30:30 +01:00
Andreas Rumpf
c8e33cbb75 fixed merge conflict 2019-02-18 09:56:01 +01:00
LemonBoy
8b39551fca Small CI improvements (#10699)
* [appveyor] Cache all the downloaded binaries

* [travis] Enable fast_finish
2019-02-18 08:07:10 +01:00
Federico Ceratto
d8ff25f032 Provide access to getsockname()/getpeername()
Port of #3323 with added tests
2019-02-17 17:04:57 +00:00
narimiran
a0fb77dfd5 add links to every document, fixes #5515 2019-02-16 18:26:28 +00:00
Federico Ceratto
51c43218c9 Comment on isSorted complexity. (#10686) [ci skip] 2019-02-16 15:56:26 +01:00
liuxiaodong
2610b16f6e some dom proc correction and complement (#10684) 2019-02-15 17:43:22 +01:00
LemonBoy
bb9fe2046e Merge pull request #10680 from narimiran/fix-10561
allow string insert in nimscript, fixes #10561
2019-02-15 16:20:26 +01:00
narimiran
1eaa18fe84 allow string insert in nimscript, fixes #10561 2019-02-15 11:09:32 +01:00
Juan Carlos
b3ffbac93c Return result when found instead of keep iterating for no reason the whole mimedb on mimetypes module (#10675) 2019-02-15 08:42:13 +01:00
Miran
6d8ce609d7 add more nimble packages for testing (#10671) 2019-02-15 08:41:43 +01:00
Arne Döring
80992c7a12 introduce object before tuple in the tutorials (#10664) 2019-02-14 22:17:05 +01:00
Araq
b081eb4d6d fixes #10651 2019-02-14 15:55:38 +01:00
Araq
70f0aab188 osproc: fix minor typo 2019-02-14 15:55:37 +01:00
Arne Döring
d2b3046c70 deprecated leftovers from era of no unsigned integer types (#10605) 2019-02-14 10:58:09 +01:00
Timothee Cour
9913cef872 fix typo in codeReordering error msg (#10667)
* fix typo in codeReordering

* reorder=>codeReordering
2019-02-14 09:52:15 +01:00
alaviss
9e754c3b06 compiler/types: correctly generates signature for non-proc types (#10658)
This makes signatures generated for nimsuggest correctly distinguish
template/macro/converter from proc.
2019-02-13 23:30:14 +01:00
Arne Döring
1ae61767f8 disable talloc2 on 32 bits (#10656) 2019-02-13 23:30:14 +01:00
Arne Döring
28394153ab 32 bit fixes (#10608) 2019-02-13 23:30:14 +01:00
Timothee Cour
304b1dd34b randomize: added doAssert(seed!=0) to avoid invalid (non-random) behavior (#10635) 2019-02-13 23:30:14 +01:00
Timothee Cour
e3ba2e24cf fix travis: add set -e in script (#10631) 2019-02-13 23:30:14 +01:00
Arne Döring
f4b2793bdf reduce debug output (#10638) 2019-02-13 23:30:14 +01:00
LemonBoy
76df77f912 Fix codegen problem with strict C++ compilers (#10639)
Since tyCString is convertible to a tyPointer we must be extra careful
to emit a cast to (void*) in order to appease clang++.

Reported by masnagam on the Nim forum.
2019-02-13 23:30:14 +01:00
alaviss
d64e218abd nimsuggest: only log when logging is enabled (#10646)
fixes #6199
2019-02-13 23:30:14 +01:00
Arne Döring
dfa3099929 deprecated list comprehension (#10636) 2019-02-13 23:30:14 +01:00
Juan Carlos
f5e55162ba Lowercase ext before querying the mimedb on mimetypes module, change isMainModule to runnableExamples (#10644) 2019-02-13 23:30:14 +01:00
Timothee Cour
cf87687c40 travis:upgrade to xenial (trusty end of life is april 2019) (#10643) 2019-02-13 23:30:14 +01:00
narimiran
e26a0c4f1a better docs: times 2019-02-13 23:30:14 +01:00
Andreas Rumpf
36f6f035ff attempt to make nightlies work again 2019-02-13 23:30:14 +01:00
Juan Carlos
d3a74ea515 Update mimetypes (#10621)
* Update mimetypes const mimes, Fix for Nim mimetypes to recognize Nim and Nimble
2019-02-13 23:30:14 +01:00
narimiran
572739a4f3 macros: add links in the docs [ci skip] 2019-02-13 23:30:14 +01:00
Jjp137
7bb94abc31 better docs: random (#10546) 2019-02-13 23:30:14 +01:00
LemonBoy
0ebef1764d Propagate tfGcSafe flag to generic instantiations (#10620)
Fixes a nasty endless loop in the generic instantiation phase.
2019-02-13 23:30:14 +01:00
Timothee Cour
942495611b revive #10228 (fix #9880) (#10610)
* Make index out of bounds more useful by including the 'bounds'.
* fixes #9880 index out of bounds (remaining cases); revives #10228
* change err msg to: `index 3 not in 0 .. 1`
2019-02-13 23:30:14 +01:00
Federico Ceratto
8f05b34125 Add note on channel usage with spawn (#10627) [ci skip] 2019-02-13 23:30:14 +01:00
Andreas Rumpf
02b5fc940d fixes #10547 2019-02-13 23:30:14 +01:00
Emery Hemingway
d1e3f58afc Use standard XML escaping 2019-02-13 23:30:14 +01:00
Dean Thompson
f785286743 Expanded the typeinfo module's doc comment to warn that rtti will evolve and suggest alternative approaches. (#10596) 2019-02-13 23:30:14 +01:00
Juan Carlos
dcbab1031a Fixes #10357 (#10618) 2019-02-13 23:30:14 +01:00
Brent Pedersen
fe26328a19 sets: avoid calling countBits32 for 0 (#10619)
this speeds up the system.sets time from ~0.2 to ~0.06
in release mode. This is still slower than intsets and
tables (which both are ~0.01).

This assumes that most sets will be sparse.

fixes #10617
2019-02-13 23:30:14 +01:00
Oscar Nihlgård
779c51c29b Implement json.% for tables and options 2019-02-13 23:30:14 +01:00
LemonBoy
d83520ec8f Do not walk into type sub-nodes for cast/conv expr (#10616) 2019-02-13 23:30:14 +01:00
LemonBoy
eb30c78694 Misc macro things (#10612)
* Misc cleanup in macro code

Generate error messages using `error` instead of `assert`.

Fixes #10574

* Fix crash with hasCustomPragma on quoted fields

Use the `$` operator instead of reaching for the `strVal` field directly
2019-02-13 23:30:14 +01:00
Kobi
dd422bfb0f fix replacef typo in example 2019-02-13 23:30:14 +01:00
Andreas Rumpf
f55d094cf2 fixes #6955 2019-02-13 23:30:14 +01:00