Commit message (Collapse) | Author | Age | Files | Lines | |
---|---|---|---|---|---|
* | fixes #11515 (#11624) | Andreas Rumpf | 2019-07-01 | 1 | -1/+1 |
| | | | | | | * fixes #11515 * better fix for #11515; make tests green | ||||
* | Replace countup(x, y-1) with x ..< y | Clyybber | 2019-05-07 | 1 | -3/+3 |
| | |||||
* | more destructor based changes (#10885) | Andreas Rumpf | 2019-03-23 | 1 | -1/+1 |
| | | | | | | | | | | | * mark user defined destructors with sfOverriden to simplify the logic * refactoring in preparation to merge liftings and generic instantiations for destructors * ast: introduce nkHiddenTryStmt for destructor generation in order to be able to optimize better the code later on * renamed 'patterns' switch to 'trmacros' as it was totally misleading before * destructors: introduce tfCheckedForDestructor flag in preparation of strict =destroy checking * test for invalid/too late destructor introductions * liftdestructors: make code robust for nimsuggest * --newruntime works for hello world again * newruntime: code generation for closures | ||||
* | gc:destructors: progress | Andreas Rumpf | 2019-02-28 | 1 | -0/+2 |
| | |||||
* | fixes nested gensym'ed parameters; fixes #9476 | Araq | 2018-12-08 | 1 | -1/+1 |
| | |||||
* | IC: further progress | Araq | 2018-12-01 | 1 | -2/+2 |
| | |||||
* | Change the order of compilation passes, transformation is made lazy at code ↵ | cooldome | 2018-10-18 | 1 | -3/+2 |
| | | | | | | | | | | | | | | | 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 | ||||
* | replace deprecated `safeAdd` with `add` (#9416) | Miran | 2018-10-18 | 1 | -1/+1 |
| | |||||
* | compiler: show name of instantiating context in error traces (#6763) (#9207) | xzfc | 2018-10-11 | 1 | -1/+1 |
| | |||||
* | fixes #4766 | Araq | 2018-08-28 | 1 | -1/+2 |
| | |||||
* | WIP: disallow 'nil' for strings and seqs | Andreas Rumpf | 2018-08-13 | 1 | -4/+3 |
| | |||||
* | allow referencing other parameters in default parameter values | Zahary Karadjov | 2018-06-16 | 1 | -2/+24 |
| | | | | | | | | fix #7756 fix #1201 fix #7000 fix #3002 fix #1046 | ||||
* | fix #6928; fix #7208 | Zahary Karadjov | 2018-06-16 | 1 | -3/+4 |
| | |||||
* | Support default type parameters | Zahary Karadjov | 2018-06-16 | 1 | -3/+16 |
| | | | | progress on #7516 | ||||
* | fixes #7222; fixes #5595; fixes #3747 | Zahary Karadjov | 2018-06-16 | 1 | -17/+20 |
| | | | | | | | | | | * late instantiation for the generic procs' default param values * automatic mixin behaviour in concepts Other fixes: * don't render the automatically inserted default params in calls * better rendering of tyFromExpr | ||||
* | remove more global variables in the Nim compiler | Andreas Rumpf | 2018-05-27 | 1 | -6/+6 |
| | |||||
* | remove ast.emptyNode global; cleanup configuration.nim | Araq | 2018-05-16 | 1 | -1/+1 |
| | |||||
* | make tests green again | Araq | 2018-05-14 | 1 | -2/+2 |
| | |||||
* | more modules compile again | Andreas Rumpf | 2018-05-12 | 1 | -13/+14 |
| | |||||
* | added toOpenArray builtin for zero-copy slices; syntax sugar yet to come | Araq | 2018-03-24 | 1 | -1/+3 |
| | |||||
* | Static[T] fixes (#7333) | zah | 2018-03-24 | 1 | -0/+30 |
| | | | | | | | | | | | * fix the usage of unresolved static[T] parameters in proc signatures * fix tsametype and tmacrogenerics * Allow creating composite type classes with concepts and using them in type signatures * Allow integers to be used in ident concatenations * Support using imported C++ generic types in proc signatures * fixes #7230 * closes #7379 * re-enable some metatype tests | ||||
* | fixes #6489 | Araq | 2017-11-23 | 1 | -0/+2 |
| | |||||
* | deprecated unary '<' | Andreas Rumpf | 2017-10-29 | 1 | -4/+4 |
| | |||||
* | first implementation of the 'func' keyword | Andreas Rumpf | 2017-09-23 | 1 | -1/+1 |
| | |||||
* | Fix #5962 | Zahary Karadjov | 2017-06-20 | 1 | -3/+8 |
| | | | | | | | | | | | | | | | During the instantiation of a generic type A, some other generic type B may be instantiated multiple times with different parameters. We can think about each instantiation as a function call that should temporary bind the parameter names to concrete types. The problem with the existing implementation in semtypinst was that it was performing this binding within a shared global table. In this sense, it was executing the code as a programming language featuring only global variables. In such a language, re-entrant functions cannot be defined properly and hence this was leading to problems with similar types. The solution is simple - just like we need to introduce stack frames to handle re-entrant functions, we introduce a stack of type bindings that are pushed and popped during the generic instantiations. | ||||
* | introduce a pre-processing pass for the concept bodies | Zahary Karadjov | 2017-06-20 | 1 | -3/+3 |
| | | | | | | | fixes #4982 fixes #3805 close #3414 | ||||
* | fixes tproctypecache_falsepositive.nim test case | Araq | 2017-06-08 | 1 | -1/+2 |
| | |||||
* | Restore the Nim's 0.14 proper handling of generic aliases | Zahary Karadjov | 2017-04-08 | 1 | -1/+2 |
| | | | | | | | | | | | A more efficient implementation is possible by restoring the old lifting ot tyGenericInvocation to tyGenericInst in liftTypeParam, but this fix will suffice for now. fixes #5087 fixes #5602 fixes #5641 fixes #5570 | ||||
* | fix tgenericshardcases | Zahary Karadjov | 2017-03-24 | 1 | -1/+2 |
| | |||||
* | Fix generic forward declarations; fixes #4104; fixes #4908 (#5566) | zah | 2017-03-23 | 1 | -3/+11 |
| | |||||
* | fixes #5430 | Araq | 2017-02-26 | 1 | -1/+1 |
| | |||||
* | big compiler refactoring; avoid globals for multi method dispatcher generation | Andreas Rumpf | 2017-02-22 | 1 | -3/+3 |
| | |||||
* | make tests green again | Araq | 2017-02-16 | 1 | -1/+3 |
| | |||||
* | fixes #5383 | Araq | 2017-02-16 | 1 | -3/+4 |
| | |||||
* | fixes #5285 | Andreas Rumpf | 2017-02-04 | 1 | -2/+9 |
| | |||||
* | remove remnants of tyIter | Jacek Sieka | 2016-10-24 | 1 | -1/+1 |
| | |||||
* | fixes #4856 | Andreas Rumpf | 2016-10-20 | 1 | -1/+2 |
| | |||||
* | fixes #4673 | Andreas Rumpf | 2016-09-01 | 1 | -1/+1 |
| | |||||
* | Merge pull request #4592 from arnetheduck/compiler-cleanup | Andreas Rumpf | 2016-08-25 | 1 | -30/+0 |
|\ | | | | | Compiler cleanup | ||||
| * | remove unused stuff | Jacek Sieka | 2016-08-09 | 1 | -30/+0 |
| | | |||||
* | | side-effect computation now done in the proper pass; fixes #4254 | Andreas Rumpf | 2016-08-25 | 1 | -3/+4 |
|/ | |||||
* | fixes #3055 | Andreas Rumpf | 2016-07-08 | 1 | -1/+1 |
| | |||||
* | fixes #4177 | Andreas Rumpf | 2016-05-28 | 1 | -2/+4 |
| | |||||
* | fixes #4097 | Andreas Rumpf | 2016-04-19 | 1 | -7/+7 |
| | |||||
* | added experimental .this pragma | Andreas Rumpf | 2016-02-28 | 1 | -1/+43 |
| | |||||
* | fixes #3476 | Araq | 2015-10-27 | 1 | -2/+2 |
| | |||||
* | fixes #3338 | Araq | 2015-10-22 | 1 | -1/+7 |
| | |||||
* | renamed inCompilesContext to compilesContextId; added test case for #3313 | Araq | 2015-09-18 | 1 | -3/+3 |
| | |||||
* | fixes #3313 | Araq | 2015-09-18 | 1 | -4/+7 |
| | |||||
* | fixes #3329 | Araq | 2015-09-18 | 1 | -1/+1 |
| |