Commit Graph

3811 Commits

Author SHA1 Message Date
Dominik Picheta
679a52f53c Merge pull request #9687 from narimiran/fix-7192
export `asyncdispatch.callSoon` (fixes #7192)
2018-11-13 21:12:19 +00:00
narimiran
c2b16b46ec export asyncdispatch.callSoon (fixes #7192) 2018-11-12 15:40:33 +01:00
narimiran
c0b5479e6b coro: minor documentation fix [backport] [ci skip] 2018-11-11 10:16:32 +01:00
Miran
964b5dac7c complete future only once in or (fixes #8982) (#9632)
* complete future only once in `or`

Analogous to `and`.
Credits to @k0zmo for proposing the solution.

* add test
2018-11-09 22:45:17 +00:00
Andreas Rumpf
8d850f7a69 deprecated ospaths (#9665) 2018-11-09 16:36:49 +01:00
Andreas Rumpf
130c218ff9 parseopt: remove confusing dead code 2018-11-09 09:03:28 +01:00
Andreas Rumpf
c0fc2f5726 fixes #9619 2018-11-09 09:03:28 +01:00
Araq
84ca9d2903 add new stdlib modules to the changelog 2018-11-08 20:52:22 +01:00
Araq
56f76c5b08 better implementation for wrapWords 2018-11-08 20:52:22 +01:00
Arne Döring
795d7e3217 WIP 2018-11-08 20:52:22 +01:00
narimiran
15c66a06f9 keep the order of the callbacks 2018-11-07 15:22:02 +01:00
Konstantin Molchanov
d5e113c3a6 Add readData proc that accepts a string. 2018-11-07 11:26:51 +01:00
Arne Döring
c2c05f5e72 fix #9639 (#9640) 2018-11-07 10:58:48 +01:00
pgkos
b9cdad7497 times - remove unneeded negative sign when parsing formats z and zz (#9631)
* fix wrong utcoffset sign for formats z and zz

* add tests for the timezone offset formats
2018-11-06 22:29:23 +01:00
Araq
1c7fbad378 make tests green again 2018-11-06 13:55:03 +01:00
Arne Döring
cc5b8c6ad2 Generic Complex type (#9590)
* remove `**`
* const `im` can now be used with Complex64
* converters from float|int to Complex are replaced by procs
* converters between various Complex types must stay to allow usage
of `im` with Complex64
* limit types for `+`, `-`, `/`, and `*` between Complex and float
* add `pow` for Complex and a number
* complex type changes
* unpublish approximation function
2018-11-05 20:27:46 +01:00
Timothee Cour
e4e19f8288 stripLineEnd aka chomp (#9623) 2018-11-05 08:01:31 +01:00
Federico Ceratto
62693457df Add 'dedent' to documentation index (#9615) 2018-11-04 08:36:13 +01:00
Araq
bc26c08862 unicode.nim: minor alignment change 2018-11-02 11:29:30 +01:00
Arne Döring
d56312624e Merge pull request #9586 from b3liever/fix-hypot-js
Fix #9585 hypot in js
2018-10-31 21:53:40 +01:00
Arne Döring
80843373ba changelog entry 2018-10-31 14:29:40 +01:00
B3liever
8a1d52fa48 Fix #9585 hypot in js 2018-10-31 14:09:39 +02:00
Arne Döring
84db658eb4 fix typo 2018-10-31 10:44:44 +01:00
Arne Döring
e653121633 fixes #9557 2018-10-30 17:13:02 +01:00
Ahmed T. Youssef
df68c2da49 write logs to stderr instead of stdout; fixes #9547 (#9554) 2018-10-30 07:36:31 +01:00
rec
9899c4525c Add parsing empty attribs to htmlparser (#9559) 2018-10-30 06:58:39 +01:00
Araq
e44df5dca6 fixes #7667; underlying issue is that dot calls in generics have no concept of 'friend' symbols, will be addressed later 2018-10-29 13:46:55 +01:00
rec
9fd0a71e4d Make htmlparser parse unquoted attrib values (#9537)
Fixes #6154
2018-10-29 11:10:00 +01:00
Araq
680f5eeb15 fixes #9540 2018-10-29 10:06:36 +01:00
narimiran
80b78b50d0 more examples for mod and div, plus corrections [ci skip] 2018-10-28 22:37:58 +00:00
Neelesh Chandola
95cc1abdc7 Fixes #9525 (#9526) 2018-10-28 14:27:17 +01:00
xzfc
95a60dc780 Fix strscans.scanp (#9518)
* strscans: fix typo

* strscans: fix #9240

* strscans: add tests
2018-10-28 13:35:30 +01:00
zah
ee54d6977b Parse the usage of the SQL in operator properly (#9527)
Also adds a `treeRepr` renderer for the SQL nodes.
2018-10-28 13:34:57 +01:00
David Krause
f2cd8ed99a fixes #7842 if no uri.scheme specified raise ValueError with hint (#7846)
* fixes #7842 if no uri.scheme specified on request rais ValueError with hint

Signed-off-by: enthus1ast <david@code0.xyz>

* Update httpclient.nim
2018-10-27 21:54:45 +01:00
citycide
4362ba7293 docs: clarify asyncCheck vs waitFor 2018-10-27 18:04:25 +01:00
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