Arne Döring
f95eef99a9
add expectIdent to macros ( #12778 )
...
* add expectIdent to macros
* apply feedback
* Update lib/core/macros.nim
Co-Authored-By: Clyybber <darkmine956@gmail.com >
* Update texpectIdent2.nim
* Update texpectIdent1.nim
Co-authored-by: Clyybber <darkmine956@gmail.com >
Co-authored-by: Andreas Rumpf <rumpf_a@web.de >
2020-03-11 08:27:31 +01:00
Arne Döring
eb42f38088
Remove dead magics ( #13551 )
2020-03-03 12:42:43 +01:00
hlaaftana
84e78b4ffc
Minor doc change in macros, future -> sugar ( #13475 ) [ci skip]
2020-02-24 09:57:15 +01:00
Clyybber
f6d45b40a5
expectLen now shows the length that we got ( #13387 )
2020-02-11 12:31:52 +01:00
Miran
352232e62d
style fix: change 'JS' to 'js' to make it consistent ( #13168 )
2020-01-16 14:14:03 +01:00
b3liever
8bcc7e8b9e
basename supports pragmaexpr ( #13045 )
...
* basename supports pragmaexpr
* update changelog
2020-01-07 11:25:51 +01:00
Andreas Rumpf
83a736a34a
ARC: cycle detector ( #12823 )
...
* first implementation of the =trace and =dispose hooks for the cycle collector
* a cycle collector for ARC: progress
* manual: the .acyclic pragma is a thing once again
* gcbench: adaptations for --gc:arc
* enable valgrind tests for the strutils tests
* testament: better valgrind support
* ARC refactoring: growable jumpstacks
* ARC cycle detector: non-recursive algorithm
* moved and renamed core/ files back to system/
* refactoring: --gc:arc vs --gc:orc since 'orc' is even more experimental and we want to ship --gc:arc soonish
2019-12-17 17:37:50 +01:00
Andreas Rumpf
3fbb3bfd3f
ARC related bugfixes and refactorings ( #12781 )
2019-12-05 16:59:06 +01:00
Araq
72237e2bcf
ARC: ported the GC tests over to --gc:arc
2019-11-26 16:04:28 +01:00
Andreas Rumpf
85ffcd80c0
more arc improvements ( #12690 )
...
* ARC: bugfix for =destroy for inherited objects
* added code useful for debugging
2019-11-20 14:34:05 +01:00
Araq
25c724d38b
gc:arc: support GC_ref/unref for ref T
2019-11-13 23:29:21 +01:00
Andreas Rumpf
84861eb48a
fixes #12644
2019-11-12 23:56:19 +01: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
Arne Döring
94675c2378
backtick and export marker handling in eqIdent ( #12574 )
2019-11-07 14:40:44 +01:00
Andreas Rumpf
3f4b9971fc
newruntime: only check for dangling refs when 'owned ref T' support is enabled
2019-11-03 09:46:49 +01:00
Kaushal Modi
d914e9a65f
[backport] Add docs to better distinguish among getProjectPath, getCurrentDir and currentSourcePath ( #12565 )
...
Fixes https://github.com/nim-lang/Nim/issues/10477 .
2019-10-31 21:00:18 +01:00
Andreas Rumpf
1746da2d9e
--gc:destructors now means Nim uses pure refcounting ( #12557 )
2019-10-30 16:15:17 +01:00
zah
de5f6a07c2
Fix newLit for objects having string fields ( #12542 ) [backport]
2019-10-28 22:45:55 +01:00
Jjp137
72147c9ba4
Prefer relative links for Nim documentation
...
This is more friendly to those browsing the documentation without
a network connection. The nim-doc package in Debian allows this,
for example.
Also, the domain name being used was not consistent. It could have
been either nim-lang.org or nim-lang.github.io, and those reading
the stable docs could have found themselves suddenly reading the
devel docs instead.
2019-10-22 17:59:12 -07:00
Timothee Cour
2446570350
fixes #12330 ( #12331 )
2019-10-02 17:57:24 +02:00
Jasper Jenkins
c20778d2d3
Macro docs additions ( #12270 )
...
* small macros doc additions
* more changes
* fixes [ci skip]
* capitalization, couple additions
* nkNodeKind to nnkNodeKind
2019-10-01 08:55:26 -04:00
zah
a4ade43536
macros.newLit now works for ref object types ( #12307 )
2019-09-30 22:24:57 +02:00
Federico Ceratto
39290cf88c
Fix spellings ( #12277 ) [backport]
2019-09-27 07:02:54 +02:00
Ray Imber
9dd297f613
Locks modules should give a compile error when threads are not enabled. ( #12231 )
...
* Locks modules should give a compile error when threads are not enabled.
* fix the compile flags to make the tests pass, or ignore files where necessary.
* Fixed when statement to account for doc builds.
2019-09-26 15:45:50 +02:00
Araq
5abe880469
last stdlib cleanups
2019-09-21 06:43:37 +02:00
Araq
05e80e1cda
lib\pure\htmlgen.nim
...
avoid callsite for htmlgen
2019-09-21 06:43:37 +02:00
Arne Döring
188ce5f3ee
add nodeId proc to macros ( #11456 )
...
* add nodeId proc to macros
* add doc comment.
* fix typo
2019-09-18 20:02:30 +02:00
Andreas Rumpf
3f87453981
fixes a weird quote do regression
2019-09-16 12:12:44 +02:00
Yuriy Glukhov
5d9c1544bf
Allow ProcTy in addPragma and friends ( #12158 )
2019-09-10 07:54:51 +02:00
Araq
ad82e65387
gc:destructors progress
2019-09-01 23:28:26 +02:00
Andreas Rumpf
ce7f29e8e6
fixes #11833 ( #12018 )
2019-08-24 06:25:47 +02:00
Andreas Rumpf
b07694cd90
new gensym handling ( #11985 )
...
* new .gensym implementation
* make astspec test green again
* introduce a --useVersion switch to group compatibility switches
* fixes #10180
* fixes #11494
* fixes #11483
* object constructor fields and named parameters are also not gensym'ed
* disabled broken package
2019-08-23 16:15:02 +02:00
nc-x
d5840e1e3d
Implement isExported for symbols in macros ( #11963 )
...
* Implement isExported for macros
* Reimplement isExported using VM callback mechanism
* VM does not support exceptions, use stacktrace() instead.
2019-08-18 11:51:28 +02:00
Timothee Cour
922e2a5098
refs #11956 ( #11957 )
2019-08-16 07:19:34 +02:00
Andreas Rumpf
433613e267
fixes #11844 ( #11935 )
2019-08-13 06:37:37 +02:00
Andreas Rumpf
212ae2f125
fixes #11891
2019-08-10 15:41:24 +02:00
Araq
7024bb800c
fixes #11844
2019-08-04 23:54:29 +02:00
Jörg Wollenschläger
903d06bab8
Fix the range of destroyed elements when shrinking a seq ( #11785 )
2019-07-19 16:46:47 +02:00
Kaushal Modi
dcbb2d66da
Fix compilation warning in macros.nim
...
Fixes:
> macros.nim(1423, 35) Warning: `typed` will change its meaning in future versions of
Nim. `void` or no return type declaration at all has the same
meaning as the current meaning of `typed` as return type declaration. [Deprecated]
2019-07-16 15:03:44 -04:00
Araq
416ba133ad
made --newruntime ready for multi-threading
2019-07-12 21:53:46 +02:00
Araq
c94647aeca
styleCheck: make the compiler and large parts of the stdlib compatible with --styleCheck:error
2019-07-10 12:42:41 +02:00
Andreas Rumpf
124a584eb2
fixes #11530
2019-07-08 19:40:42 +02:00
awr1
6a7f8e8ab5
[HCR] Added warning for using performCodeReload() in main module ( #11667 )
...
* [HCR] Added error for using performCodeReload() in main module
* [HCR] changed this to a warning, clarified usage
* [HCR] fixed typo
2019-07-07 09:18:33 +02:00
Andreas Rumpf
f310cf5250
[other] added system.dispose for owned refs
2019-06-20 19:40:18 +02:00
Andreas Rumpf
c65a5d754b
[bugfix] owned closures ( #11544 )
2019-06-20 07:40:45 +02:00
Arne Döring
1a074fffa4
change newLit on Seq ( #11542 )
2019-06-19 20:14:54 +02:00
Jasper Jenkins
bda9fd149c
[refactoring] error instead of quit for basename ( #11491 )
2019-06-13 19:34:41 +02:00
Arne Döring
efbf43d4a9
intVal works now on enum field symbols ( #11403 )
...
* intVal works now on enum field symbols
* disable flakey titerators test
2019-06-05 14:55:47 +02:00
Jasper Jenkins
71388caf2e
remove stdlib case transitions ( #11401 )
2019-06-05 08:04:29 +02:00
LemonBoy
7d217a71d3
Render deprecated pragmas ( #8886 )
...
* Render deprecated pragmas
* fix the expected html
* clean up the documentation regarding deprecations
* fix typo
* fix system.nim
* fix random
2019-06-03 10:15:20 +02:00