Commit message (Collapse) | Author | Age | Files | Lines | |
---|---|---|---|---|---|
* | make nimsuggest aware of tyOwned | Andreas Rumpf | 2019-02-25 | 1 | -1/+1 |
| | |||||
* | Fixes #10727. (#10728) | deech | 2019-02-25 | 1 | -1/+6 |
| | |||||
* | discard destroys its argument in-place (#9478) | LemonBoy | 2019-02-23 | 1 | -0/+4 |
| | |||||
* | Tuple unpacking now works for `for` vars (#10152) | Neelesh Chandola | 2019-02-23 | 5 | -45/+116 |
| | | | | | | | | * 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 | ||||
* | Open a new scope for `static:` expr blocks (#10649) | LemonBoy | 2019-02-23 | 1 | -1/+5 |
| | | | | Bring this in line with how plain blocks are analysed and avoids codegen errors if one references variables defined in such a block. | ||||
* | Tighten the conversion from tyRange to scalar types (#10495) | LemonBoy | 2019-02-23 | 1 | -6/+7 |
| | | | | | | | | | * 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 | ||||
* | make the VM aware of tyOwned | Andreas Rumpf | 2019-02-23 | 1 | -4/+4 |
| | |||||
* | FFI at CT (#10150) | Timothee Cour | 2019-02-23 | 7 | -136/+162 |
| | | | | | | * enable FFI at CT * rename useFFI=>nimHasLibFFI; improve formatting rawExecute traceCode * disable libffi on windows (works for win32, not yet win64) | ||||
* | fixes #10678 (#10681) | Arne Döring | 2019-02-23 | 1 | -1/+1 |
| | |||||
* | first steps in implementing 'owned' pointers; undocumented, do not use | Andreas Rumpf | 2019-02-23 | 12 | -54/+75 |
| | |||||
* | code cleanup: there is no tyOptRef | Andreas Rumpf | 2019-02-22 | 7 | -15/+18 |
| | |||||
* | it's spelt callsite | Andreas Rumpf | 2019-02-22 | 3 | -4/+5 |
| | |||||
* | gc:destructors: make strutils compile (but still crashes) | Andreas Rumpf | 2019-02-22 | 1 | -7/+12 |
| | |||||
* | gc:destructors: progress | Andreas Rumpf | 2019-02-21 | 2 | -9/+6 |
| | |||||
* | gc:destructors: make system/repr compile | Andreas Rumpf | 2019-02-21 | 1 | -1/+26 |
| | |||||
* | gc:destructors: slightly more stuff compiles | Araq | 2019-02-20 | 1 | -1/+2 |
| | |||||
* | gc:destructors: sink parameters need to be destroyed properly | Andreas Rumpf | 2019-02-20 | 1 | -3/+3 |
| | |||||
* | gc:destructors: add first test program | Andreas Rumpf | 2019-02-19 | 1 | -1/+3 |
| | |||||
* | fixes #10195 | Araq | 2019-02-19 | 1 | -35/+41 |
| | |||||
* | error message for accidental use of macro (#10490) | Arne Döring | 2019-02-19 | 1 | -2/+9 |
| | | | | * error message for accidental use of macro | ||||
* | fixes 10697 [backport] | Araq | 2019-02-19 | 1 | -2/+3 |
| | |||||
* | fixes #10702 (#10705) | Andreas Rumpf | 2019-02-18 | 6 | -47/+65 |
| | | | | | | * --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 | ||||
* | Prevent crash on pragma templates w/ generics (#10685) | LemonBoy | 2019-02-18 | 1 | -10/+18 |
| | | | | | | | | | * 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). | ||||
* | fixes #10651 | Araq | 2019-02-14 | 1 | -4/+3 |
| | |||||
* | fix typo in codeReordering error msg (#10667) | Timothee Cour | 2019-02-14 | 2 | -2/+2 |
| | | | | | | * fix typo in codeReordering * reorder=>codeReordering | ||||
* | compiler/types: correctly generates signature for non-proc types (#10658) | alaviss | 2019-02-13 | 1 | -1/+9 |
| | | | | This makes signatures generated for nimsuggest correctly distinguish template/macro/converter from proc. | ||||
* | 32 bit fixes (#10608) | Arne Döring | 2019-02-12 | 7 | -14/+40 |
| | |||||
* | reduce debug output (#10638) | Arne Döring | 2019-02-12 | 1 | -58/+63 |
| | |||||
* | Fix codegen problem with strict C++ compilers (#10639) | LemonBoy | 2019-02-12 | 1 | -1/+1 |
| | | | | | | Since tyCString is convertible to a tyPointer we must be extra careful to emit a cast to (void*) in order to appease clang++. Reported by masnagam on the Nim forum. | ||||
* | Propagate tfGcSafe flag to generic instantiations (#10620) | LemonBoy | 2019-02-10 | 1 | -3/+2 |
| | | | Fixes a nasty endless loop in the generic instantiation phase. | ||||
* | revive #10228 (fix #9880) (#10610) | Timothee Cour | 2019-02-10 | 2 | -13/+13 |
| | | | | | | * 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` | ||||
* | fixes #10547 | Andreas Rumpf | 2019-02-10 | 1 | -5/+6 |
| | |||||
* | Do not walk into type sub-nodes for cast/conv expr (#10616) | LemonBoy | 2019-02-09 | 1 | -0/+6 |
| | |||||
* | fixes #6955 | Andreas Rumpf | 2019-02-09 | 1 | -3/+7 |
| | |||||
* | fixes #10606 | Andreas Rumpf | 2019-02-09 | 1 | -2/+4 |
| | |||||
* | Print missing case labels (#10600) | Arne Döring | 2019-02-09 | 2 | -1/+26 |
| | |||||
* | make tests green again | Andreas Rumpf | 2019-02-08 | 1 | -2/+2 |
| | |||||
* | Fix wrong result in tuple assignment (#9340) | LemonBoy | 2019-02-08 | 1 | -0/+34 |
| | | | Fixes #9177 | ||||
* | error messages can have spaces, don't be dyslexic | Araq | 2019-02-08 | 1 | -1/+1 |
| | |||||
* | Rework exception handling in the VM (#10544) | LemonBoy | 2019-02-08 | 2 | -110/+171 |
| | | | | | | | | | | | | | | | | | * Rework exception handling in the VM Make the safepoint handling more precise and less forgiving. The new code is clearer and more commented. Perform cleanup on `return`. The no-exception-thrown case in a try block should be slightly faster since we don't parse the whole set of exceptions every time. More tests. * Fix silly error that broke a few tests * Testament doesn't like files having the same name * Remove test case that failed compilation to js | ||||
* | Fix edge case in type hashing (#10601) [backport] | LemonBoy | 2019-02-08 | 2 | -13/+17 |
| | | | | Empty types introduced by a template produced the same hash of the "clean" type sharing the same name. | ||||
* | Stop useless suggestion of unsafeAddr (#10598) | LemonBoy | 2019-02-08 | 2 | -2/+7 |
| | | | Fixes #10594 | ||||
* | compiler/[msgs, suggest]: improve highlighter accuracy (#10496) | alaviss | 2019-02-07 | 2 | -3/+42 |
| | | | | | | | | | | Previously the compiler would generate suggestions based on the symbol identifier length, but that might not reflect the actual representation of it within the actual source code. This commit implements a simple source scanner for the suggest module to address the problem outlined above. Fixes nim-lang/nimsuggest#24 | ||||
* | Fix codegen when debugger is enabled (#10595) | LemonBoy | 2019-02-07 | 1 | -4/+5 |
| | | | | | Decrement the frame length before closing the parent scope. Fixes #10589 | ||||
* | Fix handling of reraise in effect tracking (#10582) | LemonBoy | 2019-02-07 | 1 | -5/+11 |
| | | | | | | This is the MVP in order not to get a completely useless error message from the compiler. Fixes #10579 | ||||
* | fixes #10585 | Araq | 2019-02-07 | 1 | -2/+5 |
| | |||||
* | helpers2 now has a real name | Araq | 2019-02-07 | 2 | -2/+2 |
| | |||||
* | ignore nkCommentStmt in lambda lifting | Andreas Rumpf | 2019-02-06 | 1 | -1/+1 |
| | |||||
* | fixes some bug | Andreas Rumpf | 2019-02-06 | 1 | -0/+1 |
| | |||||
* | Reject assignments with nkEmpty RHS (#9000) | LemonBoy | 2019-02-06 | 1 | -7/+9 |
| | | | Fixes #8997 |