Araq
f22d3c75aa
ARC: closure inside object constructor now works
2019-11-13 23:29:21 +01:00
Arne Döring
0496a666e2
implemented alignas pragma ( #12643 )
...
* implemented alignas pragma
* fix bootstrap
* generate c++ compatible syntax for alignas
* Make it work.
* Multiple alignof expressions. Implement top level alignof.
2019-11-13 08:22:41 +00:00
Andreas Rumpf
dfb020b174
.cursor implementation ( #12637 )
...
* cursors: first implementation
* added currently failing test
* .cursor works for doubly linked lists
* make -d:useMalloc work again
* added code to nil out refs in a destructor
* it's now called --gc:arc
* renderer.nim: render nkBreakState properly
* make simple closure iterators work without leaking
2019-11-12 15:05:36 +01:00
b3liever
0c4d81241a
Version of trimZeros without temp strings ( #12633 )
2019-11-11 12:54:17 +01:00
Arne Döring
a2d6691af2
fix #12597 ( #12604 )
2019-11-07 17:16:34 +01:00
cooldome
e1b1759439
fixes #5050 ; fixes #11826 ( #12606 ) [backport]
2019-11-07 14:47:26 +01:00
Arne Döring
94675c2378
backtick and export marker handling in eqIdent ( #12574 )
2019-11-07 14:40:44 +01:00
narimiran
0d00bde4ea
fix failing test
2019-11-07 11:04:41 +01:00
narimiran
c6a451c584
remove unused imports from tests
2019-11-06 14:35:45 +01:00
Araq
1794cd477d
expr -> untyped
2019-11-05 16:55:08 +01:00
Andreas Rumpf
3ba3307d61
remove deprecated procs ( #12535 )
2019-11-05 11:05:46 +01:00
Miran
ffa9a7405f
fix #8242 , fix #12586 : fix 'formatFloat' with 'precision = 0' ( #12592 )
...
* fix #8242 , fix #12586 : fix 'formatFloat' with 'precision = 0'
'formatFloat' with 'precision = 0' now gives the same result
(a number without a decimal point) in all backends.
This is compatible with Python's formatters, too.
* fix failing tests
* add changelog entry
* add version switch
2019-11-05 10:31:23 +01:00
Kaushal Modi
b24560a140
Make sequtils.zip return seq of anonymous tuples ( #12575 )
...
* Make sequtils.zip return seq of anonymous tuples
Earlier the tuples had named fields "a" and "b" and that made it
difficult to assign the zip returned seqs to other vars which expected
seqs of tuples with field names other than "a" and "b".
* Make sequtils.zip backwards compatible with Nim 1.0.x
2019-11-04 21:11:43 +01:00
Clyybber
cf5c3f2400
Fixes #12379 ( #12591 ) [backport]
2019-11-04 20:57:14 +01:00
Tomohiro
4e0f12092e
Fixes #12536 ( #12568 ) [backport]
2019-11-02 08:21:49 +01:00
Arne Döring
99078d80d7
introduce csize_t instead of fixing csize ( #12497 )
2019-10-31 19:18:12 +01:00
Nindaleth
34dbc5699e
fix several typos in documentation and comments ( #12553 )
2019-10-30 09:08:45 +01:00
Andreas Rumpf
e58c2d261c
[backport] fix #12528 , fix #12525 : incorrect generic type resolution for default values ( #12538 )
2019-10-28 16:56:38 +01:00
Andreas Rumpf
c52a2c3ab0
proof that refcounting can handle Nim's async ( #12533 )
2019-10-28 16:13:38 +01:00
Tomohiro
a9d7796e1c
[feature]strformat: add 2 'fmt' macros that use specified characters instead of '{}' ( #11748 )
...
* [feature]strformat: add 2 'fmt' macros that use specified chars instead of '{}'
* strformat: revert documentation comments of `&` and 'fmt'
* strformat: removed single open/close char variant of fmt
2019-10-28 12:33:44 +01:00
Arne Döring
5ed99f8d3f
Extent json.to testing to VM, add workrounds for VM bugs. ( #12493 )
...
fixes #12479
2019-10-28 10:06:16 +01:00
Andreas Rumpf
7192b13609
some progress on bug #12443
2019-10-27 17:50:30 +01:00
Oscar Nihlgård
4ac100c912
Fix jsgen bug with uninitialized seq ( #12500 ) [backport]
2019-10-24 11:17:01 +02:00
Oscar Nihlgård
9ccfcf5dd2
Fix compiler crash caused by top level return ( #12501 )
2019-10-24 11:04:04 +02:00
narimiran
d5cd5b00b9
disable flaky test on OSX
2019-10-23 11:24:43 +02:00
Dominik Picheta
92fa7e0579
Merge branch 'devel' into IOSelector_unregister_fix
2019-10-22 11:31:38 -07:00
Paul Tan
ad3c10022a
guards.nim:sameTree(): handle uint literals correctly ( #12483 ) [backport]
2019-10-22 18:18:33 +02:00
Andreas Rumpf
38b3590e40
fixes #12310 [backport] ( #12470 )
2019-10-20 22:37:31 +02:00
Arne Döring
ec20fd3544
fix #12426 ( #12462 )
2019-10-20 11:52:50 +02:00
Andreas Rumpf
832b0a0232
fixes #12420 [backport] ( #12456 )
2019-10-18 22:13:24 +02:00
Andreas Rumpf
889b745b2b
Revert "Fixes #12187 ( #12321 )" ( #12447 )
...
This reverts commit 00c31e8766 .
2019-10-18 15:59:22 +02:00
Arne Döring
21cbfd72ec
Refactor json macro ( #12391 )
...
* closes #12316
* make tjsonmacro work at js target
* closes #12289
* closes #11988
* also fixed gdb related stuff
2019-10-17 09:55:41 +02:00
treeform
5ba932e43c
About 50% faster base64 implemention. ( #12436 )
2019-10-17 09:50:00 +02:00
Miran
734da9e1df
fixes #11764 , faster hashing of (u)int ( #12407 )
2019-10-15 16:31:07 +02:00
Yuriy Glukhov
1aed455e7c
Fixed yield in nkCheckedFieldExpr ( #12429 ) [backport]
2019-10-15 09:16:06 +02:00
Arne Döring
7cf3395d85
refactor illegal iterator assignment detection ( #12212 )
...
* refactor illegal iterator assignment detection
* delete crappy test
2019-10-11 08:43:58 +02:00
Jasper Jenkins
245a954b25
ungeneric unsigned ops ( #12230 )
...
* ungenericise unsigned ops, remove nimNewShiftOps
* fix/remove tests
* update t6448
* fix line info
* disable on 32bit
* fix different line info
* add changelog entry
2019-10-11 08:38:08 +02:00
Araq
7f904e2c66
fixes #12244 [backport]
2019-10-10 10:00:57 +02:00
Andreas Rumpf
f30da2f266
fixes #12315 [backport]; refs #12314 ( #12385 )
2019-10-08 20:49:45 +02:00
Clyybber
00c31e8766
Fixes #12187 ( #12321 )
...
* Fixes #12187
* Point to fork of compactdict
Since the original repo is now archived / read-only
2019-10-08 14:15:47 +02:00
Tomohiro
509f53b782
On windows, os.relativePath returns path as is when roots are different ( #12329 )
...
* On windows, os.relativePath returns path as is when roots are different
* Implement os.sameRoot without windows API
* Fix compile error when compiling lib/nimhcr.nim
* Fix compile error when compiling lib/nimhcr.nim on Windows
2019-10-07 19:57:16 +02:00
Ray Imber
b347490f91
lowered the number of events in the test because some CI's have an extremely low FD limit
2019-10-07 10:07:05 -07:00
Ray Imber
adc1419499
Test + fix for epoll and kqueue selector modules to properly unregister
...
event handles that have the key type "User"
2019-10-06 16:02:12 -07:00
kraptor
412011eb96
Fix reference to parseSpec proc in readme ( #12359 )
2019-10-04 19:30:58 +02:00
Ridho Pratama
678775601a
Fixed sizeOf to sizeof ( #12347 )
2019-10-03 19:38:37 +02:00
Leorize
73c8391fd3
azure: disable failing tests
2019-10-03 18:36:18 +02:00
hlaaftana
ba43156363
Sets need copying in JS ( #11392 )
...
* Sets need copying in JS
* Fixes #11353
* Add test for #11353
2019-10-02 21:01:59 +02:00
Tomohiro
64d5e25821
Fix how relativePath handle case sensitiviy ( #12312 ) [backport]
2019-10-01 09:09:59 +02:00
zah
a4ade43536
macros.newLit now works for ref object types ( #12307 )
2019-09-30 22:24:57 +02:00
Clyybber
16c39f9b2e
More of StringStream now works at compile time ( #12284 )
...
* readLine of StringStream now works at compile time
* Work for js backend only at compile time
* readAll now works at CT
* readAll works in js ct now
* Add test
2019-09-29 22:20:00 +02:00