Commit Graph

18917 Commits

Author SHA1 Message Date
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
Andreas Rumpf
49a5213713 fixes #10606 2019-02-13 23:30:14 +01:00
Andreas Rumpf
354e3f2a40 disable flaky coroutines test 2019-02-13 23:30:14 +01:00
Andreas Rumpf
614b731caf new AppVeyor configuration that should test the compiler against sele… (#10549) 2019-02-13 23:30:14 +01:00
Arne Döring
43a0dd42bc Print missing case labels (#10600) 2019-02-13 23:30:14 +01:00
LemonBoy
048a7a6539 Fix compilation w/ Atomic[T] types (#10607) 2019-02-13 23:30:14 +01:00
cooldome
d70dd6f3cb Move cpp exception handler from system to excpt next to the signal handler (#9435) 2019-02-13 23:30:14 +01:00
b3liever
695206a00c Add summation algorithms (#9284) 2019-02-13 23:30:14 +01:00
Andreas Rumpf
04cdf99448 koch and testament improvement; make testing command easier to get right 2019-02-13 23:30:14 +01:00
alaviss
3520253a09 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 08:07:58 +01:00
Arne Döring
b6c22eae6a disable talloc2 on 32 bits (#10656) 2019-02-13 08:04:06 +01:00
Arne Döring
6870345cd2 32 bit fixes (#10608) 2019-02-12 22:00:31 +01:00
Timothee Cour
bdc150adff randomize: added doAssert(seed!=0) to avoid invalid (non-random) behavior (#10635) 2019-02-12 09:33:20 +01:00
Timothee Cour
cc507668cb fix travis: add set -e in script (#10631) 2019-02-12 08:30:53 +01:00
Arne Döring
0e5d4f1036 reduce debug output (#10638) 2019-02-12 08:27:38 +01:00
LemonBoy
1d1360496f 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-12 08:23:24 +01:00
alaviss
cf5812aa9f nimsuggest: only log when logging is enabled (#10646)
fixes #6199
2019-02-12 08:17:39 +01:00
Arne Döring
c59fa80367 deprecated list comprehension (#10636) 2019-02-12 08:10:40 +01:00
Juan Carlos
33ddc21057 Lowercase ext before querying the mimedb on mimetypes module, change isMainModule to runnableExamples (#10644) 2019-02-12 01:22:04 -05:00
Timothee Cour
85f2ab1c43 travis:upgrade to xenial (trusty end of life is april 2019) (#10643) 2019-02-12 01:18:55 -05:00
narimiran
242b6eb16c better docs: times 2019-02-11 15:36:35 +01:00
Andreas Rumpf
9f98678008 attempt to make nightlies work again 2019-02-11 15:28:23 +01:00
Juan Carlos
6cd3fff093 Update mimetypes (#10621)
* Update mimetypes const mimes, Fix for Nim mimetypes to recognize Nim and Nimble
2019-02-11 11:44:49 +01:00
narimiran
d3e35c3200 macros: add links in the docs [ci skip] 2019-02-11 09:11:04 +01:00
Jjp137
305f6052ee better docs: random (#10546) 2019-02-11 08:50:31 +01:00
LemonBoy
5fd9bf9cd5 Propagate tfGcSafe flag to generic instantiations (#10620)
Fixes a nasty endless loop in the generic instantiation phase.
2019-02-10 22:07:50 +01:00
Timothee Cour
4910608394 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-10 22:07:11 +01:00
Federico Ceratto
352b52a0c9 Add note on channel usage with spawn (#10627) [ci skip] 2019-02-10 20:52:13 +01:00
LemonBoy
c5dc46926c Merge pull request #10622 from ehmry/xml
Use standard XML escaping
2019-02-10 19:33:59 +01:00
Andreas Rumpf
f0e6becc23 fixes #10547 2019-02-10 17:03:32 +01:00
Emery Hemingway
a9b2e83daa Use standard XML escaping 2019-02-10 16:10:23 +01:00
Dean Thompson
d46a590f74 Expanded the typeinfo module's doc comment to warn that rtti will evolve and suggest alternative approaches. (#10596) 2019-02-10 08:56:28 +01:00
Juan Carlos
b73ee96641 Fixes #10357 (#10618) 2019-02-10 08:53:38 +01:00
Brent Pedersen
0c9a3d4804 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-10 08:49:54 +01:00
Oscar Nihlgård
f1ae0ed6ea Implement json.% for tables and options 2019-02-10 00:29:24 +00:00
LemonBoy
0c4d1fd10b Do not walk into type sub-nodes for cast/conv expr (#10616) 2019-02-09 19:55:26 +01:00
LemonBoy
1e88bf1def 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-09 18:22:07 +01:00