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
LemonBoy
467519f80d
Merge pull request #10614 from kobi2187/patch-1
...
fix replacef typo in example
2019-02-09 16:53:57 +01:00
Kobi
dcf725d228
fix replacef typo in example
2019-02-09 15:12:59 +02:00
Andreas Rumpf
c6fdf93c7f
fixes #6955
2019-02-09 11:18:21 +01:00
Andreas Rumpf
3c909ae8ff
fixes #10606
2019-02-09 08:18:33 +01:00
Andreas Rumpf
c4ad297544
disable flaky coroutines test
2019-02-09 07:41:19 +01:00
Andreas Rumpf
dee9a94278
new AppVeyor configuration that should test the compiler against sele… ( #10549 )
2019-02-09 07:40:00 +01:00
Arne Döring
594c2576e6
Print missing case labels ( #10600 )
2019-02-09 07:36:30 +01:00
LemonBoy
bcbe130ea7
Fix compilation w/ Atomic[T] types ( #10607 )
2019-02-09 07:30:48 +01:00
cooldome
55fe7c114e
Move cpp exception handler from system to excpt next to the signal handler ( #9435 )
2019-02-08 21:42:45 +01:00
b3liever
e0e8fdf737
Add summation algorithms ( #9284 )
2019-02-08 21:38:27 +01:00
Andreas Rumpf
c751c914fc
koch and testament improvement; make testing command easier to get right
2019-02-08 20:01:20 +01:00
Andreas Rumpf
444f2231c9
make tests green again
2019-02-08 16:54:12 +01:00
Andreas Rumpf
6fc90ab1c2
macros.nim: minor comment change
2019-02-08 16:09:22 +01:00
LemonBoy
aa6e40abe6
Fix wrong result in tuple assignment ( #9340 )
...
Fixes #9177
2019-02-08 12:24:03 +01:00
Araq
8bc7c50c86
DOM module: re-add more missing stuff
2019-02-08 12:18:42 +01:00
Araq
4ed7507cb2
error messages can have spaces, don't be dyslexic
2019-02-08 12:18:42 +01:00
LemonBoy
710cfcecd3
Rework exception handling in the VM ( #10544 )
...
* Rework exception handling in the VM
Make the safepoint handling more precise and less forgiving.
The new code is clearer and more commented.
Perform cleanup on `return`.
The no-exception-thrown case in a try block should be slightly faster
since we don't parse the whole set of exceptions every time.
More tests.
* Fix silly error that broke a few tests
* Testament doesn't like files having the same name
* Remove test case that failed compilation to js
2019-02-08 11:57:47 +01:00
LemonBoy
631a8ab57f
Fix edge case in type hashing ( #10601 ) [backport]
...
Empty types introduced by a template produced the same hash of the
"clean" type sharing the same name.
2019-02-08 09:56:32 +01:00
Araq
4572568045
fixes #10602
2019-02-08 09:52:29 +01:00
Matt Haggard
fd62d24c4c
Add non-interactive installer flag (-y) to finish.nim ( #10603 ) [backport]
2019-02-08 09:39:58 +01:00
LemonBoy
6b88ce3384
Stop useless suggestion of unsafeAddr ( #10598 )
...
Fixes #10594
2019-02-08 08:59:38 +01:00
Araq
c7c495f08a
testament: use bin/nim.exe as the default
2019-02-07 20:35:23 +01:00
alaviss
2fdf816332
compiler/[msgs, suggest]: improve highlighter accuracy ( #10496 )
...
Previously the compiler would generate suggestions based on the symbol
identifier length, but that might not reflect the actual representation
of it within the actual source code.
This commit implements a simple source scanner for the suggest module to
address the problem outlined above.
Fixes nim-lang/nimsuggest#24
2019-02-07 17:08:15 +01:00
LemonBoy
29fbf111a8
Fix codegen when debugger is enabled ( #10595 )
...
Decrement the frame length before closing the parent scope.
Fixes #10589
2019-02-07 17:07:35 +01:00
LemonBoy
f23b0a7dc8
Fix handling of reraise in effect tracking ( #10582 )
...
This is the MVP in order not to get a completely useless error message
from the compiler.
Fixes #10579
2019-02-07 17:07:03 +01:00
Araq
c95616f6ee
fixes #10586
2019-02-07 16:13:03 +01:00
narimiran
27364ece14
mention correct usage of export in the manual, fixes #6227 [ci skip]
2019-02-07 16:10:48 +01:00
Araq
84d10f7d8a
fixes #10585
2019-02-07 15:04:05 +01:00
Araq
3dc270eee5
DOM module: add more missing stuff
2019-02-07 15:04:05 +01:00
Timothee Cour
b8f4ff8b9f
followup on #10573 : prevent common user config to interfere with testament (excessiveStackTrace) ( #10590 )
2019-02-07 12:29:31 +01:00
Araq
d5da450100
helpers2 now has a real name
2019-02-07 12:12:20 +01:00
Timothee Cour
6f412fc6cb
fix #10591 regression ( #10592 )
2019-02-06 22:31:36 -06:00
Andreas Rumpf
37f9ace517
further system.nim cleanups
2019-02-06 22:35:51 +01:00
Andreas Rumpf
2851f316f6
ignore nkCommentStmt in lambda lifting
2019-02-06 22:00:16 +01:00
Andreas Rumpf
4338f86acb
fixes some bug
2019-02-06 22:00:16 +01:00
LemonBoy
294b2e03b2
Reject assignments with nkEmpty RHS ( #9000 )
...
Fixes #8997
2019-02-06 21:26:55 +01:00
Andreas Rumpf
0036014727
system refactorings ( #10559 )
...
* move IO subsystem into its own module; refs #10385
* make standalone test compile again
* make C++ examples compile again
* make more tests green
* make sysAssert and gcAssert work again
2019-02-06 21:00:00 +01:00
Andreas Rumpf
65f3e390e8
fixes #10584 [backport]
2019-02-06 20:58:28 +01:00
Oscar Nihlgård
bfb2ad5078
New implementation of times.between ( #10523 )
...
* Refactor ttimes
* New implementation of times.between
* Deprecate times.toTimeInterval
2019-02-06 20:13:29 +01:00
Araq
e457ccc7e1
make travis green
2019-02-06 17:42:38 +01:00