narimiran
2074ad1416
strutils: document parseEnum [ci skip]
2019-02-25 11:35:37 +01:00
Federico Ceratto
28a83a8388
Handle IPv6 in bindAddr #7633
...
Add test
2019-02-23 13:06:26 +00:00
LemonBoy
71df1b060b
Tighten the conversion from tyRange to scalar types ( #10495 )
...
* Tighten the conversion from tyRange to scalar types.
Introduce the `isIntConv` rule for unsigned types.
Do not allow mixed-signedness conversions between ranges and scalar types.
* More json adjustments
2019-02-23 11:52:52 +01:00
Andreas Rumpf
721bf7188b
code cleanup: there is no tyOptRef
2019-02-22 19:42:11 +01:00
Miran
cedf784751
better docs: options ( #10720 )
2019-02-22 12:28:00 +01:00
Andreas Rumpf
f2f0b5d695
system.nim: spacing
2019-02-21 12:03:47 +01:00
Andreas Rumpf
418cbbb450
macros.nim: spacing
2019-02-21 12:03:34 +01:00
Andreas Rumpf
43d570c178
gc:destructors: make system/repr compile
2019-02-21 07:57:29 +01:00
Araq
6c10d331db
gc:destructors: slightly more stuff compiles
2019-02-20 14:29:18 +01:00
Araq
ffd0f81247
times.nim: avoid some stdlib dependencies
2019-02-20 12:30:51 +01:00
Araq
7b31a81d45
system.nim: avoid 'cannot prove init' warnings for the '..' constructors
2019-02-20 12:28:22 +01:00
Miran
6a5c74722e
add xmltree.clear, fixes #3797 ( #10711 )
...
* add `xmltree.clear`, fixes #3797
* use `setLen`
2019-02-20 08:41:34 +01:00
Araq
68ce92d4eb
fixes a critical strutils bug [backport]
2019-02-19 19:37:25 +01:00
Oscar Nihlgård
1a771a8248
Replace the duration conversion procs with new improved ones ( #10710 )
2019-02-19 19:12:44 +01:00
Miran
50d1a46537
better docs: osproc ( #10708 )
...
* better docs: osproc
* fix a typo in the docs, deprecate "demon"
2019-02-19 17:25:03 +01:00
Araq
e4a76c6ebf
fixes #6832
2019-02-19 17:17:12 +01:00
Miran
51f516e030
better docs: strtabs ( #10704 )
2019-02-19 12:49:47 +01:00
Miran
8cf97908cc
document proper imports, fixes #8164 ( #10698 )
2019-02-19 12:49:09 +01:00
Araq
315d438677
asyncnet.nim: Minor code cleanup
2019-02-19 11:56:14 +01:00
Andreas Rumpf
2deb1e354f
fixes #10702 ( #10705 )
...
* --define:nimQuirky exception handling for Nim; in preparation of a blog post
* make it work with latest system.nim
* make code more readable
* fixes #10702
2019-02-18 15:23:05 +01:00
LemonBoy
cf32d61fa5
Prevent crash on pragma templates w/ generics ( #10685 )
...
* Prevent crash on pragma templates w/ generics
* Remove incorrect call to pragma reconversion
`semOverloadedCall` may return a node with more elements than the
original nkCall node had (implicit and/or explicit generics).
2019-02-18 12:17:00 +01:00
Federico Ceratto
d8ff25f032
Provide access to getsockname()/getpeername()
...
Port of #3323 with added tests
2019-02-17 17:04:57 +00:00
Federico Ceratto
51c43218c9
Comment on isSorted complexity. ( #10686 ) [ci skip]
2019-02-16 15:56:26 +01:00
liuxiaodong
2610b16f6e
some dom proc correction and complement ( #10684 )
2019-02-15 17:43:22 +01:00
narimiran
1eaa18fe84
allow string insert in nimscript, fixes #10561
2019-02-15 11:09:32 +01:00
Juan Carlos
b3ffbac93c
Return result when found instead of keep iterating for no reason the whole mimedb on mimetypes module ( #10675 )
2019-02-15 08:42:13 +01:00
Araq
70f0aab188
osproc: fix minor typo
2019-02-14 15:55:37 +01:00
Arne Döring
d2b3046c70
deprecated leftovers from era of no unsigned integer types ( #10605 )
2019-02-14 10:58:09 +01:00
Arne Döring
6870345cd2
32 bit fixes ( #10608 )
2019-02-12 22:00:31 +01:00
Timothee Cour
bdc150adff
randomize: added doAssert(seed!=0) to avoid invalid (non-random) behavior ( #10635 )
2019-02-12 09:33:20 +01:00
Arne Döring
c59fa80367
deprecated list comprehension ( #10636 )
2019-02-12 08:10:40 +01:00
Juan Carlos
33ddc21057
Lowercase ext before querying the mimedb on mimetypes module, change isMainModule to runnableExamples ( #10644 )
2019-02-12 01:22:04 -05:00
narimiran
242b6eb16c
better docs: times
2019-02-11 15:36:35 +01:00
Juan Carlos
6cd3fff093
Update mimetypes ( #10621 )
...
* Update mimetypes const mimes, Fix for Nim mimetypes to recognize Nim and Nimble
2019-02-11 11:44:49 +01:00
narimiran
d3e35c3200
macros: add links in the docs [ci skip]
2019-02-11 09:11:04 +01:00
Jjp137
305f6052ee
better docs: random ( #10546 )
2019-02-11 08:50:31 +01:00
Timothee Cour
4910608394
revive #10228 ( fix #9880 ) ( #10610 )
...
* Make index out of bounds more useful by including the 'bounds'.
* fixes #9880 index out of bounds (remaining cases); revives #10228
* change err msg to: `index 3 not in 0 .. 1`
2019-02-10 22:07:11 +01:00
Federico Ceratto
352b52a0c9
Add note on channel usage with spawn ( #10627 ) [ci skip]
2019-02-10 20:52:13 +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
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
Kobi
dcf725d228
fix replacef typo in example
2019-02-09 15:12:59 +02: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
6fc90ab1c2
macros.nim: minor comment change
2019-02-08 16:09:22 +01:00
Araq
8bc7c50c86
DOM module: re-add more missing stuff
2019-02-08 12:18:42 +01:00