Andreas Rumpf
223e92b83a
stdlib: documenation updates, the exception names have been changed
2018-10-25 07:42:45 +02:00
Andreas Rumpf
9331f06c0b
parsutils: minor doc improvements
2018-10-24 21:52:33 +02:00
Araq
963292f725
added system.typeof operation; fixes #9093
2018-10-24 17:09:51 +02:00
Oscar Nihlgård
81f5427ed4
Fix times 32-bit issue
2018-10-19 22:33:40 +02:00
cooldome
953f2ef261
Minor bug fix ( #9430 )
2018-10-19 11:45:59 +02:00
cooldome
eaca5be9d6
Change the order of compilation passes, transformation is made lazy at code gen ( #8489 )
...
* Ast no transformation
* Add getImplNoTransform to the macros module
* progress on delaying transf
* Fix methods tranformation
* Fix lazy lambdalifting
* fix create thread wrapper
* transform for lambda lifting
* improve getImplTransformed
* Fix destructor tests
* try to fix nimprof for linux
2018-10-18 20:21:25 +02:00
Vindaar
82a1576263
fix #9394 by replacing fmt with strutils.% ( #9417 )
...
* fix #9394 by replacing `fmt` with normal string append
Until issue #7632 is fixed, use string append.
* use `strutils.%` instead of normal string add
2018-10-18 14:47:47 +02:00
LemonBoy
1fe949b9d5
Make the swap procs safe for unaligned input ptrs ( #9210 )
...
* Make the swap procs safe for unaligned input ptrs
The copy to a temporary local variable is often elided by a sufficiently
smart compiler when it can prove the input pointer is aligned.
Refs #9206
* Explain why copyMem is used
2018-10-18 14:30:31 +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
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
37986d0ba8
ospaths docs: add 'basename' to theindex
2018-10-15 10:51:47 +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
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
Timothee Cour
e4c76f8a2a
add strutils.stripLineEnd ( #9346 )
2018-10-13 14:59:56 +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
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
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
Oscar Nihlgård
eade49d7a7
Fix OrderedSet.excl ( #9287 )
2018-10-11 08:40:09 +02:00
eqperes
6620b5dc8d
Documentation improved for math module ( #9266 )
2018-10-10 14:25:39 +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
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
pqflx3
b90b45b01b
Add algorithm.[sort,sorted,isSorted] overloads using 'system.cmp'. ( #8778 )
...
* Add algorithm.[sort,sorted,isSorted] overloads using 'system.cmp'. Fixes 8684.
* Change signatures to 'func'. Improve overload sort doc comments
2018-10-09 13:25:25 +02:00
Juan Carlos
bc557e4c6a
HTMLGen Update, Add runnableExamples, Add HTML Tags center, details, dialog, marquee, picture, slot, summary ( #9252 )
2018-10-09 13:13:13 +02:00
Dominik Picheta
269b957e29
Merges #8451 manually. Fixes #8099 .
2018-10-03 21:25:11 -07:00
LemonBoy
2c0bfb34fd
Fix regression w/ templates defined in async proc
2018-10-03 18:25:25 +02:00
Steve Kellock
91c13a0163
[docs/json]: expands existing examples + shows {} operator in action ( #9157 )
...
* [docs/json]: expands existing examples + shows {} operator in action
* adds import stmt and fixes butchered syntax in json examples
2018-10-02 20:47:21 -07:00
Andreas Rumpf
e867c8e5c3
Merge branch 'devel' into fix_issues_9126
2018-10-01 14:15:35 +02:00
Araq
5298c509a7
fixes #9126
2018-10-01 12:51:44 +02:00
Yasuhiro Horimoto
aa8249d177
Fix #9126 : use splitPath instead of substr
2018-09-30 23:20:14 +09:00
Andreas Rumpf
2dfd09b1be
Merge pull request #9115 from mashingan/fix-json-aliased
...
Fix #9111 ; error when parsing to aliased type field
2018-09-29 13:27:37 +02:00
Araq
4f8cf945fb
docs: remove most stale links; refs #9109
2018-09-29 11:23:29 +02:00
mashingan
5624036251
Fix #9111 ; error when parsing to aliased type field
2018-09-29 15:48:01 +07:00
Kaushal Modi
903886396d
Don't prevent ',' from getting escaped in theindex.html
...
- Enable escaping of links in theindex.html
- Fixes https://github.com/nim-lang/Nim/issues/9107 .
- Second part of the fix for https://github.com/nim-lang/Nim/issues/9097 .
2018-09-28 15:39:22 -04:00