Koki Fushimi
5fc5e37194
Use one same type for two parameters
2018-06-14 13:17:17 +09:00
Federico Ceratto
127556ad63
Update marshal.nim
2018-06-13 23:22:07 +01:00
Federico Ceratto
d1e03c20d2
Add hint on JSON serialization
2018-06-13 23:11:29 +01:00
Andreas Rumpf
89dd1e3592
Merge pull request #8030 from c-blake/devel
...
hotfix 3221ac0943 broke gc:regions/aka …
2018-06-13 20:01:47 +02:00
Vindaar
e80be6173d
Add parse bin int, fixes #8018 ( #8020 )
...
* clarify `parseHexInt`, `parseOctInt` docstring and exception msgs
* add `parseBinInt` based on `parseutil.parseBin` implementation
Adds a `parseBinInt`, which parses a binary integer string and returns
it as an integer. This is based on the implementation of
`parseutil.parseBin`, removing the unnecessary parts.
* add tests for all `parse(Hex|Oct|Bin)Int` procs
* replace `parse*Int` proc impls by call to parseutil procs
Replaces the `parse(Hex|Oct|Bin)Int` procedure implementation by calls
to the `parseutil` procs, which receive a mutable argument.
Has the main advantage that the empty string as well as a "prefix
only" string, e.g. "0x" counts as an invalid integer.
Also moves the `parseOctInt` proc further up in the file so that all
`parse` procs are below one another.
* replace `var L` by `let L` in `parse` procs
There's no reason for the usage of `var` here.
* add `maxLen` optional arg for `parseutil.parse(Oct|Bin)`
Plus small change to test cases.
* update changelog about `parse*Int` procs
* fix `rejectParse` template in `tstrutils`
* make sure only `s.len` chars are parsed, if `maxLen+start` > s.len
Fixes a previous bug in `parseHex` (and now affected `parseOct` and
`parseBin`), which allowed to set `start + maxLen` to be larger than
the strings length. This resulted in an out of bounds access.
* move `parse*Int` proc change to breaking changes, add double `
2018-06-13 13:32:12 -04:00
Charles Blake
ed4f1f4c43
hotfix 3221ac0943 broke gc:regions/aka gc:stack by
...
underallocating for sequences of any type larger than 1 byte. This does the
necessary multiply to restore basic functionality.
2018-06-13 10:36:47 -04:00
Andreas Rumpf
cd65ef0056
Merge pull request #8027 from yglukhov/vm-fix
...
Fixed uncaught exception in vm gen
2018-06-13 15:50:18 +02:00
Dominik Picheta
518a3e7f73
Merge pull request #8025 from krux02/remove-immediate
...
fix #5930
2018-06-13 14:12:16 +01:00
Yuriy Glukhov
dd06c46865
Fixed uncaught exception in vm gen
2018-06-13 15:39:45 +03:00
Arne Döring
51fdb071cb
fix #5930
2018-06-13 12:18:21 +02:00
Andreas Rumpf
5348fef003
implements a --nep1:on switch to make the compiler enforce the naming conventions outlined in NEP-1
2018-06-13 01:44:19 +02:00
cooldome
101f23f3a6
manual merge 2
2018-06-12 23:23:21 +01:00
cooldome
3dd61d6fff
Manual merge
2018-06-12 23:20:34 +01:00
cooldome
0b709fb916
FIx test tembarrassing_generic_failure
2018-06-12 21:41:35 +01:00
cooldome
37aa488f99
merge devel
2018-06-12 21:19:30 +01:00
Andreas Rumpf
f555338ce8
bugfix: allow 'export' in the VM
2018-06-12 21:08:41 +02:00
Andreas Rumpf
b379547fc0
Merge pull request #8019 from yglukhov/proc-stacktrace
...
Allow stacktrace and linetrace pragmas on procs
2018-06-12 17:12:13 +02:00
Andreas Rumpf
aaceec0744
Merge pull request #7981 from cooldome/Fix_-7980
...
Fixes 7980
2018-06-12 11:50:40 +02:00
Yuriy Glukhov
7a4b343d8d
Added NIM_STRLIT_FLAG to seq literals
2018-06-12 12:39:54 +03:00
Yuriy Glukhov
7e7b85afc7
Allow stacktrace and linetrace pragmas on procs
2018-06-12 12:31:14 +03:00
cooldome
a877a58f32
Fix error message
2018-06-12 09:31:45 +01:00
cooldome
77f33db3ed
style fixes, typos
2018-06-12 09:27:37 +01:00
cooldome
44d82d9492
style improvements
2018-06-12 09:17:24 +01:00
cooldome
a274d77b55
Fixes
2018-06-12 00:28:09 +01:00
cooldome
746da12d74
add comment
2018-06-12 00:22:11 +01:00
cooldome
1b7cf3df51
New approach
2018-06-12 00:20:08 +01:00
cooldome
4619ee7058
remove underscores
2018-06-11 23:20:31 +01:00
Andreas Rumpf
1c58f31a71
Merge pull request #8014 from yglukhov/fix-6803
...
Fixes #6803
2018-06-11 23:39:27 +02:00
LemonBoy
ac0f986008
Correct field lookup in concept types
...
Fixes #6770
2018-06-12 00:36:43 +03:00
Yuriy Glukhov
8f06763491
Fixes #6803
2018-06-11 22:38:40 +03:00
Araq
1074cc1fb9
fixes yet another merge conflict
2018-06-11 17:17:34 +02:00
Araq
b0ecc1aca6
disable -d:nimIncremental for devel
2018-06-11 17:08:25 +02:00
Araq
68ba13c759
fixes merge conflict
2018-06-11 17:05:23 +02:00
Andreas Rumpf
76676cb79f
Merge pull request #8009 from yglukhov/remove-oldIterTransf
...
Removed oldIterTranf feature
2018-06-11 16:45:35 +02:00
Andreas Rumpf
26133a33a4
make tests green properly
2018-06-11 07:18:34 +02:00
Jimmie Houchin
657062145b
Added FileMode to comment on asyncfile openAsync ( #8008 )
2018-06-11 00:53:42 -04:00
Andreas Rumpf
df1784dabf
Merge pull request #8005 from Vindaar/fixes-7997
...
fix #7997
2018-06-11 01:33:14 +02:00
Andreas Rumpf
61d9292095
fixes merge conflict
2018-06-11 01:25:48 +02:00
Andreas Rumpf
61e1897922
make tests green again
2018-06-11 01:23:14 +02:00
cooldome
a65e9c0e25
fix comments
2018-06-10 23:27:45 +01:00
Andreas Rumpf
90b1030dec
incremental compilation: save the configuration
2018-06-11 00:14:29 +02:00
cooldome
4d87d666ee
manual merge
2018-06-10 23:07:05 +01:00
cooldome
17ab7aff44
manual merge continues
2018-06-10 23:05:50 +01:00
cooldome
f1185658cc
manual merge
2018-06-10 23:03:54 +01:00
cooldome
73b7ec9009
merge devel
2018-06-10 22:58:39 +01:00
cooldome
7302a8ce7a
Fixes 7845
2018-06-10 22:49:09 +01:00
Yuriy Glukhov
5c449c8cd1
Removed oldIterTranf feature
2018-06-10 23:42:53 +03:00
Zahary Karadjov
5f2cdcd4fa
fix #7653
2018-06-10 22:27:51 +03:00
Andreas Rumpf
8db27d30e6
record cppdefine for incremental compilation
2018-06-10 18:05:43 +02:00
Vindaar
9c5f38850d
add test case for fix to #7997
2018-06-10 18:01:15 +02:00