Commit message (Collapse) | Author | Age | Files | Lines | |
---|---|---|---|---|---|
* | Restrict ptr/ref to ptr/ref implicit conversion (#10411) | LemonBoy | 2019-01-22 | 1 | -0/+8 |
| | | | | | | | | * Restrict ptr/ref to ptr/ref implicit conversion Fixes #10409 * Make the ptr conversions explicit in db_odbc | ||||
* | Fix compileTime pragma applying to whole var/let section (#10389) | Neelesh Chandola | 2019-01-22 | 1 | -0/+15 |
| | |||||
* | Object downconversion in VM should not copy (#10378) | LemonBoy | 2019-01-22 | 1 | -0/+17 |
| | | | | | | Hopefully the type-check phase already rejected all the invalid conversions by the time we execute the VM bytecode. Problem reported by chrisheller on the Nim Forum | ||||
* | Finalizer proc must be global (#10388) | LemonBoy | 2019-01-22 | 1 | -0/+31 |
| | | | Fixes #10376 | ||||
* | Fix subtype conversion w/ varargs arguments (#10402) | LemonBoy | 2019-01-21 | 4 | -0/+4 |
| | | | | | | | | | The type matching is done on the `T` of the `varargs[T]` so the conversion must be performed to `T` and not to the whole type. This problem is only noticeable with the cpp backend since C doesn't give a damn shit about your fucking (wrong) types. Fixes #9845 | ||||
* | Proper check for tyStatic[T] -> U conversions (#10382) | LemonBoy | 2019-01-21 | 1 | -0/+5 |
| | | | | | Drop the outer tyStatic shell then perform the check. Fixes #7609 | ||||
* | Support system.reset in vm (#10400) | Oscar Nihlgård | 2019-01-21 | 1 | -0/+28 |
| | |||||
* | Fix error lexer error messages for to large numbers (#10394) | Oscar Nihlgård | 2019-01-21 | 1 | -0/+15 |
| | |||||
* | Fix spelling errors (#10379) | Federico Ceratto | 2019-01-19 | 1 | -1/+1 |
| | |||||
* | ported havlak and gcbench benchmarks to work with --gc:regions | Andreas Rumpf | 2019-01-19 | 2 | -41/+54 |
| | |||||
* | GC tests: make them take less time to save CI cycles | Andreas Rumpf | 2019-01-19 | 2 | -7/+5 |
| | |||||
* | Fixed getCustomPragmaVal to allow multiple fields in custom annotations (#10289) | Ico Doornekamp | 2019-01-18 | 1 | -0/+9 |
| | |||||
* | fix #9629 every binary cmd line option allows on/off/empty=on (#10353) | Timothee Cour | 2019-01-18 | 1 | -1/+4 |
| | | | | | | * fix #9629 every binary cmd line option allows on/off/empty=on * workaround refs #10359 | ||||
* | destructors: first step towards fixing #9617 (#10341) | cooldome | 2019-01-18 | 2 | -0/+23 |
| | |||||
* | Remove long deprecated stuff (#10332) | Miran | 2019-01-18 | 2 | -3/+4 |
| | |||||
* | [CI] now enables `NIM_COMPILE_TO_CPP=true` to run without allow_failures ↵ | Timothee Cour | 2019-01-17 | 1 | -0/+2 |
| | | | | | | | | (#10315) * better fix for `nim cpp` bootstrap error: error: no member named raise_id * [CI] now enables runs NIM_COMPILE_TO_CPP=true without allow_failures * workaround refs #10343 | ||||
* | Properly wrap discarded statements (#10322) | LemonBoy | 2019-01-17 | 1 | -0/+19 |
| | | | | | | Failing to do so lead the codegen to emit invalid code sometimes, especially when C++ references were involved. Fixes #10241 | ||||
* | disable one more test for C++ | Araq | 2019-01-16 | 1 | -0/+4 |
| | |||||
* | Merge pull request #10318 (Better docs for four modules) | Miran | 2019-01-16 | 2 | -5/+5 |
|\ | |||||
| * | better docs: strutils | narimiran | 2019-01-16 | 1 | -4/+4 |
| | | |||||
| * | better docs: sequtils | narimiran | 2019-01-16 | 1 | -1/+1 |
| | | |||||
* | | json: support tuple (#10010) | Timothee Cour | 2019-01-16 | 1 | -0/+4 |
| | | |||||
* | | fix sdl_test test that failed in CI cpp mode (#10314) | Timothee Cour | 2019-01-15 | 1 | -6/+18 |
| | | | | | | | | | | | | * fix sdl_test test that failed in CI cpp mode * preserve old code for NimInAction in `nim c` mode | ||||
* | | parseopt2.cmdLineRest is now correct too (#10304) | Timothee Cour | 2019-01-15 | 1 | -16/+19 |
|/ | |||||
* | fix #10305 nim cpp is now nan-correct at CT (#10310) | Timothee Cour | 2019-01-15 | 1 | -0/+28 |
| | | | | | * fix #10305 nim cpp is now nan-correct at CT * add example where simply `nim cpp -d:release` would exhibit nan bug | ||||
* | fix twrong_refcounts in nim cpp mode (#10313) | Timothee Cour | 2019-01-15 | 1 | -0/+3 |
| | |||||
* | fixes #10203 (#10290) | Andreas Rumpf | 2019-01-15 | 1 | -0/+20 |
| | | | | | | * fixes #10203 * make typredef test green again * fixes the regressions differently | ||||
* | disable one more test for C++ | Andreas Rumpf | 2019-01-15 | 1 | -0/+1 |
| | |||||
* | typed/untyped return type is invalid for everything except templates and ↵ | Neelesh Chandola | 2019-01-15 | 1 | -0/+12 |
| | | | | macros (#10275) | ||||
* | fix test | Timothee Cour | 2019-01-14 | 1 | -2/+13 |
| | |||||
* | fix #9842 #9951: `nim -r` and parseopt.cmdLineRest are now correct | Timothee Cour | 2019-01-14 | 1 | -44/+92 |
| | |||||
* | improve formatting in assertEquals | Timothee Cour | 2019-01-14 | 1 | -11/+11 |
| | |||||
* | make tests green again | Andreas Rumpf | 2019-01-14 | 1 | -0/+1 |
| | |||||
* | Fixes #10065 (#10260) | Arne Döring | 2019-01-14 | 1 | -4/+4 |
| | | | | CountTable now returns 0 instead of 'key not found' for get requests. | ||||
* | fixes #7878 | Araq | 2019-01-14 | 1 | -1/+10 |
| | |||||
* | fixes #7524 | Araq | 2019-01-14 | 1 | -0/+10 |
| | |||||
* | make megatest green | Araq | 2019-01-13 | 1 | -2/+1 |
| | |||||
* | closes #3744 | Araq | 2019-01-13 | 1 | -0/+11 |
| | |||||
* | fixes #10075 [backport] | Araq | 2019-01-13 | 1 | -1/+30 |
| | |||||
* | make tests more robust; tests should be deterministic, no randomize() calls ↵ | Araq | 2019-01-13 | 3 | -14/+16 |
| | | | | in tests | ||||
* | fixes #10273 execShellCmd now returns nonzero when child killed with signal ↵ | Timothee Cour | 2019-01-13 | 4 | -18/+96 |
| | | | | | | | | | | + other fixes (#10274) * s/exitStatus(...)/exitStatusLikeShell(...)/ * fix #10273 execShellCmd now returns nonzero when child exits with signal * test case for #10249 and explanation for the bug * fix test failure * add tests/nim.cfg | ||||
* | Fixes 10202 (#10283) | rec | 2019-01-12 | 1 | -10/+27 |
| | | | | | | * Add a test case for #10202 * Fix asgn for object tyVars; fixes #10202 * Check the variant kind before accessing the sym field | ||||
* | void object fields are now ignored by codegen and fields/fieldPairs iterator ↵ | Neelesh Chandola | 2019-01-10 | 1 | -0/+17 |
| | | | | | | | | | (#10144) * Codegen now ignores object fields of type void * Fix `$` bug for objects/tuples where it does not add a comma * fields/fieldPairs iterators now ignore void types * Use `isEmptyType` instead of checking for `tyVoid` directly | ||||
* | Merge pull request #10248 from narimiran/graveyard | Miran | 2019-01-10 | 2 | -3/+7 |
|\ | | | | | Move four modules to graveyard | ||||
| * | remove `scgi` | narimiran | 2019-01-10 | 1 | -2/+7 |
| | | |||||
| * | remove `subexes` | narimiran | 2019-01-10 | 1 | -1/+0 |
| | | |||||
* | | destructors: lift type bound operations for case and distinct objects (#10238) | cooldome | 2019-01-10 | 1 | -21/+50 |
|/ | |||||
* | add `alignTable`, `parseTableCells` to align/format a tab(etc) delimited ↵ | Timothee Cour | 2019-01-09 | 3 | -0/+171 |
| | | | | | | | | table (#10182) * add compiler/unittest_light.nim for easy diffing: assertEquals and mismatch * fixup * add alignTable, parseTableCells | ||||
* | add `isNamedTuple`; make $(1, 2) be (1, 2) instead of (Field0: 1, Field1: 2) ↵ | Timothee Cour | 2019-01-08 | 10 | -17/+74 |
| | | | | | | | | | | | | | which leaked implementation detail (#10070) * add `isNamedTuple`; make $(1, 2) be (1, 2) instead of leaking implementation detail (Field0: 1, Field1: 2) fixes this: #8670 (comment) /cc @alehander42 @Vindaar @mratsim * Note: isNamedTuple is useful in other places, eg #10010 (comment) * move isNamedTuple to helpers.nim to avoid exposing new symbol to system.nim * remove workaround in tests/vm/tissues.nim failing test now that #10218 was makes it work | ||||
* | [error messages, stacktraces] fix #8794 #9270 #9767 #9768 (#9766) | Timothee Cour | 2019-01-08 | 3 | -0/+71 |
| | | | | | | | | | | | | | | | | | | | * fixes #8794 : `Error: undeclared field: 'foo'` should show type (+ where type is defined) (hard to guess in generic code) * fixes #9270: `--listFullPaths` not honored by `declared in foo.nim` messages * fixes #9767: VM stacktrace doesn't honor --excessiveStackTrace:on * fixes #9768: VM stacktrace misses column info, can lead to ambiguous or harder to read stacktraces * refactors some col+1 code to col + ColOffset (self documents code) * make getProcHeader show declared info location also for types and all routine kinds (including macros,templates) instead of just (rather arbitrarily) for iterator,proc,func,method * --listFullPaths now is honored in more places * fix typo system/except.nim => lib/system/excpt.nim * remove substr(foo, 0) hack in compiler/vm.nim which seems old and not applicable anymore |