Andreas Rumpf
bf4e688ca3
make nimsuggest aware of tyOwned
2019-02-25 16:37:09 +01:00
narimiran
2074ad1416
strutils: document parseEnum [ci skip]
2019-02-25 11:35:37 +01:00
deech
68a82f100e
Fixes #10727 . ( #10728 )
2019-02-25 11:21:14 +01:00
Federico Ceratto
28a83a8388
Handle IPv6 in bindAddr #7633
...
Add test
2019-02-23 13:06:26 +00:00
LemonBoy
f39aa1b40b
discard destroys its argument in-place ( #9478 )
2019-02-23 14:03:32 +01:00
Neelesh Chandola
9884129058
Tuple unpacking now works for for vars ( #10152 )
...
* Tuple unpacking now works for `for` vars
* Give error if length of tuple vars != length of tuple
* Fix error message showing wrong tuple length
* unpacking now works now for mutable items
* Update changelog
2019-02-23 14:01:34 +01:00
LemonBoy
e89aaaeaab
Open a new scope for static: expr blocks ( #10649 )
...
Bring this in line with how plain blocks are analysed and avoids codegen
errors if one references variables defined in such a block.
2019-02-23 12:05:07 +01:00
Andreas Rumpf
f86835ce77
manual: document implicit type conversions involving 'range'; refs #10495
2019-02-23 11:49:29 +01: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
c5dbb0379f
disable compile-time FFI support
2019-02-23 11:34:39 +01:00
Andreas Rumpf
7ec187a8e1
make the VM aware of tyOwned
2019-02-23 11:31:31 +01:00
Timothee Cour
adbabf145c
FFI at CT ( #10150 )
...
* enable FFI at CT
* rename useFFI=>nimHasLibFFI; improve formatting rawExecute traceCode
* disable libffi on windows (works for win32, not yet win64)
2019-02-23 11:31:01 +01:00
Arne Döring
30ab7e6bdd
fixes #10678 ( #10681 )
2019-02-23 10:58:40 +01:00
Miran
e7878c0d08
add tests for recently closed issues ( #10722 )
2019-02-23 10:41:35 +01:00
Andreas Rumpf
ea409fb15a
first steps in implementing 'owned' pointers; undocumented, do not use
2019-02-23 08:44:08 +01:00
Andreas Rumpf
721bf7188b
code cleanup: there is no tyOptRef
2019-02-22 19:42:11 +01:00
Andreas Rumpf
15c208cd29
it's spelt callsite
2019-02-22 18:28:49 +01:00
narimiran
4fb73e6d8f
fix nimble package tests
2019-02-22 14:09:08 +01:00
Miran
cedf784751
better docs: options ( #10720 )
2019-02-22 12:28:00 +01:00
Andreas Rumpf
a4543c1aac
gc:destructors: make strutils compile (but still crashes)
2019-02-22 12:06:30 +01:00
Andreas Rumpf
417d27c544
gc:destructors: progress
2019-02-21 12:19:06 +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
narimiran
873539b50d
lib.rst: add link to asyncstreams, fixes #6383 [ci skip]
2019-02-20 14:16:38 +01:00
Araq
ffd0f81247
times.nim: avoid some stdlib dependencies
2019-02-20 12:30:51 +01:00
Araq
2990a5ea54
koch.nim: indentation uses 2 spaces
2019-02-20 12:28:43 +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
Andreas Rumpf
c025786b75
gc:destructors: sink parameters need to be destroyed properly
2019-02-20 02:04:58 +01:00
Andreas Rumpf
7e404c670d
gc:destructors: add first test program
2019-02-19 23:32:41 +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
Araq
f31d1fa98b
fixes #10195
2019-02-19 16:25:57 +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
Arne Döring
6b9a139f7f
error message for accidental use of macro ( #10490 )
...
* error message for accidental use of macro
2019-02-19 12:21:42 +01:00
Araq
257965e105
fixes 10697 [backport]
2019-02-19 11:56:14 +01:00
Araq
315d438677
asyncnet.nim: Minor code cleanup
2019-02-19 11:56:14 +01:00
Miran
2fae94cdc5
add more nimble packages to the test ( #10707 )
2019-02-19 11:43:34 +01:00
narimiran
83f5839e2c
manual: fix broken sentence
2019-02-19 09:07:25 +01:00
Andreas Rumpf
7b68da9bf1
manual: typo
2019-02-18 15:24:55 +01:00
Andreas Rumpf
c8cb567938
Merge branch 'devel' of github.com:nim-lang/Nim into devel
2019-02-18 15:23:43 +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
Andreas Rumpf
739dc8094e
make set specification more clear; refs #10524
2019-02-18 15:18:42 +01:00
Timothee Cour
1d66222901
fixes #10659 koch boot fails on windows ( #10660 )
2019-02-18 12:18:52 +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