Commit Graph

14578 Commits

Author SHA1 Message Date
Miran
39e1cd2bf6 Better docs for sets and intsets (#10362)
* better docs: sets

* better docs: intsets
2019-01-22 10:18:12 +01:00
LemonBoy
792dbed57e Restore the docstring during the .async. transform (#10404) [backport]
Fixes #9816
2019-01-22 09:41:11 +01:00
Neelesh Chandola
226c15499f Fix compileTime pragma applying to whole var/let section (#10389) 2019-01-22 07:55:11 +01:00
LemonBoy
44c04b3571 Object downconversion in VM should not copy (#10378)
Hopefully the type-check phase already rejected all the invalid
conversions by the time we execute the VM bytecode.

Problem reported by chrisheller on the Nim Forum
2019-01-22 07:36:40 +01:00
LemonBoy
3ea099bc7f Finalizer proc must be global (#10388)
Fixes #10376
2019-01-22 07:35:52 +01:00
LemonBoy
7a3f382517 Fix corner case of checked div/mod on x86 (#10406)
Fixes #10377
2019-01-22 07:33:27 +01:00
Miran
a0e8d4a93f Gdb reload (#10408)
* gdb pretty printer survive reload

* precise printer injection
2019-01-22 06:25:11 +01:00
genotrance
4b1e227531 Fix gorge caching (#10407) 2019-01-22 06:24:45 +01:00
LemonBoy
ee89ba6bdb Fix subtype conversion w/ varargs arguments (#10402)
The type matching is done on the `T` of the `varargs[T]` so the
conversion must be performed to `T` and not to the whole type.

This problem is only noticeable with the cpp backend since C doesn't
give a damn shit about your fucking (wrong) types.

Fixes #9845
2019-01-21 19:12:17 +01:00
Arne Döring
b4d329d69f precise printer injection 2019-01-21 17:38:17 +01:00
LemonBoy
ae5d8fbd9d Proper check for tyStatic[T] -> U conversions (#10382)
Drop the outer tyStatic shell then perform the check.

Fixes #7609
2019-01-21 17:27:36 +01:00
Oscar Nihlgård
a4cdd25b19 Support system.reset in vm (#10400) 2019-01-21 17:00:33 +01:00
alaviss
413755fd45 Correct lineinfo for accent quoted symbols in proc definition (#10399)
* compiler/parser: preserve lineinfo for accent quoted symbols

Previously the lineinfo for symbol $$$ in this example is:

    proc `$$$`
             ^

After this commit:

    proc `$$$`
          ^

* compiler/semstmts: correct lineinfo for accent quoted idents

Previously nimsuggest would highlight this as:

    proc `$$$`
         ^~~

After this commit:

    proc `$$$`
          ^~~

* nimsuggest/tests: add a test for accent quoted proc

Disabled by default
2019-01-21 16:57:48 +01:00
Miran
4bea8dd674 better docs for lists and deques (#10390)
* better docs: lists

* better docs: deques
2019-01-21 15:22:53 +01:00
Oscar Nihlgård
9a003bae06 Fix error lexer error messages for to large numbers (#10394) 2019-01-21 15:14:38 +01:00
Arne Döring
ea0c1811c5 gdb pretty printer survive reload 2019-01-21 14:22:16 +01:00
Neelesh Chandola
5491f40d54 fix vccexe not using correct path for detecting vcvarsall (#10364) 2019-01-21 10:05:23 +01:00
Timothee Cour
32a90f7406 fix json bug []= misplaced (#10397) 2019-01-21 08:24:06 +01:00
Kobi
28b3c8d74d prevent index out of bounds error in oserr.nim 2019-01-19 10:56:36 -08:00
Federico Ceratto
095eaacf21 Fix spelling errors (#10379) 2019-01-19 16:01:27 +01:00
Thomas T. Jarløv
bfeade9791 better docs: uri (#10373) 2019-01-19 15:31:14 +01:00
Thomas T. Jarløv
4a04470450 better docs: sha1 (#10374) 2019-01-19 15:24:39 +01:00
Thomas T. Jarløv
15aea78405 better docs: base64 (#10371) 2019-01-19 15:21:07 +01:00
Andreas Rumpf
2371b4be96 ported havlak and gcbench benchmarks to work with --gc:regions 2019-01-19 12:48:39 +01:00
Andreas Rumpf
9985706fb8 GC tests: make them take less time to save CI cycles 2019-01-19 12:48:39 +01:00
Andreas Rumpf
f7c0360aba allocators: introduce --define:nimMinHeapPages for tuning mmap calls (omg they are slow on OSX...) 2019-01-19 12:48:39 +01:00
Oscar Nihlgård
86a91c1a4a Fix parseutils.parseBiggestInt regression (#10348) 2019-01-18 19:15:29 +01:00
Neelesh Chandola
3cc39c2eb9 Show filename in exception raised by expandFilename on windows (#10365) 2019-01-18 18:46:35 +01:00
Arne Döring
8399e0f78a deprecate += and friends for bool and enum (#10336)
* fixes #10257
* add version to deprecation
2019-01-18 14:36:38 +01:00
Thomas T. Jarløv
6fb618da4b better docs: parseutils 2019-01-18 14:17:25 +01:00
Ico Doornekamp
f11f36e7d5 Fixed getCustomPragmaVal to allow multiple fields in custom annotations (#10289) 2019-01-18 09:04:12 +01:00
Timothee Cour
27e2ed4375 fix #9629 every binary cmd line option allows on/off/empty=on (#10353)
* fix #9629 every binary cmd line option allows on/off/empty=on

* workaround refs #10359
2019-01-18 09:03:26 +01:00
Tomohiro
4b4e4fc029 Fix unhandled exception that raised when nim was executed with --cc:vcc option (#10356) 2019-01-18 09:00:32 +01:00
cooldome
1e63f1edb3 destructors: first step towards fixing #9617 (#10341) 2019-01-18 08:51:22 +01:00
Miran
214f48eae9 Remove long deprecated stuff (#10332) 2019-01-18 07:18:32 +01:00
Miran
cceb28b5eb remove queues (#10347)
This module was deprecated and superseded by deques 2 years ago.
2019-01-17 20:37:39 +01:00
Timothee Cour
42bac52426 [CI] now enables NIM_COMPILE_TO_CPP=true to run without allow_failures (#10315)
* better fix for `nim cpp` bootstrap error: error: no member named raise_id
* [CI] now enables runs NIM_COMPILE_TO_CPP=true without allow_failures
* workaround refs #10343
2019-01-17 08:00:44 +01:00
LemonBoy
15584879b9 Properly wrap discarded statements (#10322)
Failing to do so lead the codegen to emit invalid code sometimes,
especially when C++ references were involved.

Fixes #10241
2019-01-17 07:55:29 +01:00
narimiran
52a54f5f04 documentation: remove author field [ci skip] 2019-01-17 07:15:40 +01:00
Araq
2039dad273 koch.nim: Make bootstrapping in C++ mode robust 2019-01-16 21:19:51 +01:00
Araq
8947779dd0 disable one more test for C++ 2019-01-16 21:19:51 +01:00
Oscar Nihlgård
5df411bd6e Revert export of times.CTime; add std/time_t instead. (#10319)
* Revert export of times.CTime
* Add std/time_t
2019-01-16 21:08:32 +01:00
alaviss
fc30cf02bc nimsuggest: add an option to bind to a free port (#10328) 2019-01-16 21:06:32 +01:00
Araq
1cb5e20620 parseutils.nim: help the codegen produce better code 2019-01-16 17:59:24 +01:00
narimiran
2e8bf88614 sequtils doc: another quickfix [ci skip] 2019-01-16 12:32:00 +01:00
narimiran
3abe6e9e14 quickfix for sequtils docs [ci skip] 2019-01-16 11:58:51 +01:00
Miran
b48364694d Merge pull request #10318 (Better docs for four modules) 2019-01-16 11:48:37 +01:00
Timothee Cour
b8454327c5 json: support tuple (#10010) 2019-01-16 10:16:14 +01:00
narimiran
387f481e86 better docs: math 2019-01-16 09:46:01 +01:00
narimiran
b40a637fac better docs: tables 2019-01-16 09:45:57 +01:00