Yuriy Glukhov
dc72cf7564
No setjump in GC for emscripten/wasm ( #9386 )
2018-10-17 00:46:13 +02:00
Federico Ceratto
afc453beff
Update example ( #9395 )
2018-10-17 00:17:37 +02:00
eqperes
afd9d8dd8d
Some documentation added to strutils ( #9379 )
...
* wip documentation strutils
* some runnableExamples in strutils
* assert -> doAssert
* corrected doc for abbrev; some more runnable examples
* runnableExamples for join
* fix c&p error
* corrections
2018-10-16 17:30:38 +02:00
LemonBoy
72cd3b7914
Fix repr() for UncheckedArray ( #9385 )
2018-10-16 14:27:42 +02:00
skilchen
f04c93b5dd
math.round is not needed in strutils ( #9383 )
2018-10-16 09:19:53 +02:00
Araq
0c04da6f26
Merge branch 'devel' of github.com:nim-lang/Nim into devel
2018-10-15 12:20:52 +02:00
Araq
8252c65cf2
system.nim deprecate 'getRefcount'; refs #2839 , refs #3713
2018-10-15 10:54:20 +02:00
Araq
37986d0ba8
ospaths docs: add 'basename' to theindex
2018-10-15 10:51:47 +02:00
Araq
fe091997aa
system.nim: fixes typo
2018-10-15 02:38:04 +02:00
Timothee Cour
3bef851143
fix #8225 os.isHidden was buggy on posix ( #8315 )
...
* fix #8225 isHidden was broken on posix
* scope rest of tos.nim under blocks to avoid variable scope bugs
2018-10-15 00:22:34 +02:00
Andreas Rumpf
8955470644
fixes #9306 properly, fixes #9306
2018-10-14 11:19:51 +02:00
Federico Ceratto
b62328cb76
Add strip() example ( #8002 )
2018-10-14 11:05:28 +02:00
Andreas Rumpf
8960efa340
unicode: added strip, align, alignLeft, repeat procs; refs #6301
2018-10-14 11:00:22 +02:00
Andreas Rumpf
77a8c6ffd8
unicode: add split procs; refs #6301
2018-10-14 10:47:54 +02:00
Andreas Rumpf
152c7d99c3
struils: don't use the deprecated accumulateResult
2018-10-14 10:28:50 +02:00
Andreas Rumpf
7656925140
added new editdistance stdlib module, deprecated strutils.editDistance, refs #6301
2018-10-14 10:26:45 +02:00
Andreas Rumpf
7f81519f41
strutils/unicode: deprecate isLower and friends operating on complete strings; fixes #7963 properly
2018-10-14 09:48:54 +02:00
Josh Goebel
38454c6951
Fix type in docs ( #9362 )
2018-10-14 08:44:36 +02:00
Timothee Cour
745f1642d6
implement sizeof and alignof operator (manually squashed #5664 ) ( #9356 )
2018-10-14 00:52:28 +02:00
Timothee Cour
3e2d8c1c53
correctly render AST in doAssert/assert condition: fixes #8518 ; refs #9301 ( #9332 )
...
* fixes #8518 ; refs #9301 ; correctly render AST in doAssert condition
2018-10-14 00:17:10 +02:00
Timothee Cour
e4c76f8a2a
add strutils.stripLineEnd ( #9346 )
2018-10-13 14:59:56 +02:00
Timothee Cour
ef820769a4
deprecate accumulateResult => sequtils.toSeq ( #8666 )
2018-10-13 09:23:33 +02:00
Tomohiro
eb4272ba1c
manual: Fix links to Parallel & Spawn ( #9342 )
2018-10-13 08:55:34 +02:00
Vindaar
9cdd9be5a5
fixes #8916 by fixing typeinfo and marshal. ( #9341 )
...
* fixes #8916 by removing `tyString`, `tySeq`, mod. marshal, typeinfo
Need to check in `typeinfo` for nil of the underlying pointer.
In marshal don't have to check for nil of seq anymore.
* remove reference to string, sequence in `isNil` doc string
2018-10-13 08:47:58 +02:00
c-blake
1b3725e395
Add toOpenArray[T](ptr UncheckedArray[T]) for clarity. ( #9316 )
...
* Add `toOpenArray[T](ptr UncheckedArray[T])` for clarity. `ptr array[0,T]`
for some unchecked type already works but A) `UncheckedArray` seems to be
the intended future way for this kind of access, and B) essentially all use
cases will have a `ptr` for that kind of array source and this call signature
lets callers drop the trailing `[]` corresponding to that `ptr` deref.
This PR relates to issue https://github.com/nim-lang/Nim/issues/9001 .
* Add a test for toOpenArray() for UncheckedArray[T]s.
2018-10-12 17:40:07 +02:00
eqperes
14925ee8b6
Proposed solution for issue #8919 ( #9280 )
...
* Proposed solution for issue #8919
* count sub/subs must be non-empty
2018-10-12 17:28:21 +02:00
Jacek Sieka
97738a4f28
Testament pre parallel ( #9137 )
...
* testament: move to root dir (it's not a test)
* osproc: fix process index passed to afterRunEvent for parallel runs
it was passing the index of the process, not index of all commands
* testament: complete file move
2018-10-12 17:27:47 +02:00
LemonBoy
71636059e9
Avoid memory allocation during dynlib loading ( #9320 )
...
By using `write` instead of `rawWrite` we'd end up asking the compiler
to generate the GC dynlib _while_ we were already generating another
dynlib!
Fixes #9123
2018-10-12 08:56:14 +02:00
Konstantin Molchanov
fde4a086c5
8684 add shortcut sort procs ( #9174 )
...
* Stdlib: Algorithm: Add shortcut versions of sort, sorted, and isSorted procs.
* Add tests for sort, sorted, and isSorted procs from algorithm module.
* Merge sort tests into tsortcall.nim, remove tsort.nim.
* Stdlib: Algorithm: Add shortcut versions of sort, sorted, and isSorted procs.
* Add tests for sort, sorted, and isSorted procs from algorithm module.
* Merge sort tests into tsortcall.nim, remove tsort.nim.
2018-10-11 22:51:23 +02:00
Ștefan Talpalaru
10f5f67767
gogc: GCC-8.2.0 compatibility and other improvements ( #9211 )
...
- Go's write barriers are now plugged-in in all the relevant points
- "gcGo" is correctly classified by usesWriteBarrier()
- some gogc structures and functions now use golib wrappers to keep GCC
version-specific conditions out of the compiler/stdlib code
- we no longer allow mixing the C malloc with Go's
- fix a problem with string copying
2018-10-11 22:15:17 +02:00
Araq
8ab6fa1be2
fixes #9306
2018-10-11 16:15:35 +02:00
eqperes
00c4aba828
compile date and compile time tz written in doc ( #9283 )
2018-10-11 12:15:15 +02:00
Solitude
027a11d7c8
Add procs to retrieve project name, directory and full path to nimscript ( #9274 )
2018-10-11 09:56:12 +02:00
Oscar Nihlgård
eade49d7a7
Fix OrderedSet.excl ( #9287 )
2018-10-11 08:40:09 +02:00
LemonBoy
0ead36dae6
Unchecked arrays now have their own type ( #9267 )
2018-10-10 21:03:18 +02:00
eqperes
6620b5dc8d
Documentation improved for math module ( #9266 )
2018-10-10 14:25:39 +02:00
LemonBoy
32d5b80938
Fix macro expansion in expandMacros ( #8998 )
...
* Fix macro expansion in expandMacros
Running a semanticized node trough the semantic pass was a bad idea.
Fixes #7723
* Simpler smaller implementation
2018-10-09 23:24:54 +02:00
Miran
98a8868cb4
better docs for tables module ( #9221 )
...
* better docs for `tables` module
* lower case for the first sentence in docs
2018-10-09 22:39:51 +02:00
Miran
47828efe32
better docs for algorithm module ( #9192 )
...
* better docs for `algorithm` module
* address the comments
* small first letter in the first sentence
* last argument is reverted to be `int`
* `rotateLeft` keeps `discardable` pragma, as discussed on IRC
* another small correction
2018-10-09 21:36:51 +02:00
Miran
27e4825c62
[cleanup] remove xmldom and xmldomparser ( #9234 )
2018-10-09 20:58:56 +02:00
hlaaf
c68ea019f9
Separate high/low/len docs for each overload ( #8816 )
2018-10-09 20:15:55 +02:00
LemonBoy
a3fb0a769c
Try/Catch support for native JS exceptions ( #8955 )
...
* Try/Catch support for native JS exceptions
* Better tests
2018-10-09 19:51:29 +02:00
Dominik Picheta
21ecf64d24
Fixes #8994 . FutureStream read procedure data loss no longer occurs. ( #9183 )
...
* Fixes #8994 . FutureStream read procedure data loss no longer occurs.
* Optimises the fix for #8994 .
2018-10-09 19:39:12 +02:00
Arne Döring
5076fda2e2
fix for #9082 ( #9089 )
2018-10-09 19:37:53 +02:00
Yasuhiro Horimoto
fe19670c52
Fixes #8841 ( #9101 )
...
Modify comments for readChar and peekChar to the same as the comment for them in the source code.
2018-10-09 19:30:02 +02:00
Timothee Cour
a98b1a7764
fix #8341 : add lastPathPart ( #9116 )
2018-10-09 19:27:31 +02:00
alaviss
2a31f42d35
asyncmacro: add nnkSym support for getName() ( #9204 )
...
Fixes #9201
2018-10-09 15:53:13 +02:00
alaviss
dad290accb
os: use unlink() to remove file ( #9220 )
...
removeFile() behavior should now be consistant between Windows and POSIX
Fixes #9200
2018-10-09 15:37:36 +02:00
Kaushal Modi
c0266e1afa
Fix typo in an algorithm runnableExamples ( #9260 )
...
Fixes the 'koch docs' build failure.
Ref:
b90b45b01b
2018-10-09 15:36:36 +02:00
Timothee Cour
73e6b229aa
[os] clarify docs for existsDir ( #9212 )
...
* Update os.nim
* Update os.nim
2018-10-09 15:04:29 +02:00