Commit message (Collapse) | Author | Age | Files | Lines | |
---|---|---|---|---|---|
* | Merge pull request #11159 from JasperJenkins/const-named-tuple-unpack | Andreas Rumpf | 2019-05-08 | 1 | -1/+2 |
|\ | | | | | Const named tuple unpacking | ||||
| * | handle in semConst | Jasper Jenkins | 2019-05-05 | 1 | -1/+2 |
| | | |||||
* | | Replace countup(x, y) with x .. y | Clyybber | 2019-05-07 | 1 | -5/+5 |
| | | |||||
* | | Replace countup(x, y-1) with x ..< y | Clyybber | 2019-05-07 | 1 | -16/+16 |
|/ | |||||
* | discard type is an error, fixes #7470 (#11146) | Jasper Jenkins | 2019-05-01 | 1 | -1/+1 |
| | |||||
* | added system.unown to make 'owned' sane to use in practice; later on we ↵ | Araq | 2019-04-29 | 1 | -4/+8 |
| | | | | might change the type inference rules to make it more convenient | ||||
* | revert discardable transformation (#10905) | Andreas Rumpf | 2019-04-21 | 1 | -14/+10 |
| | | | | | | | | | | * Revert "Properly wrap discarded statements (#10322)" This reverts commit 15584879b91e14565156ca140eef1dc100cf34c4. * add test for implicit discard after defer * enable t10241 again * make C++ tests green again | ||||
* | destructors: internal compiler refactoring | Araq | 2019-04-18 | 1 | -7/+7 |
| | |||||
* | remove shadow warning, fixes #10732 (#11039) | Miran | 2019-04-17 | 1 | -16/+4 |
| | |||||
* | sem'check understands 'owned procs' | Araq | 2019-04-11 | 1 | -1/+6 |
| | |||||
* | Fix astdef typ deref (#10245) | Alexander Ivanov | 2019-04-05 | 1 | -1/+1 |
| | |||||
* | fixes destructor tuple regression #10940 (#10941) | cooldome | 2019-04-04 | 1 | -1/+1 |
| | | | | | | | | * fixes #10940 * bug fixes * fix spacing | ||||
* | Pure ref object; fixes #10721 (#10955) | Arne Döring | 2019-04-04 | 1 | -0/+2 |
| | |||||
* | more destructor based changes (#10885) | Andreas Rumpf | 2019-03-23 | 1 | -14/+20 |
| | | | | | | | | | | | * 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 | ||||
* | mark user defined destructors with sfOverriden to simplify the logic | Andreas Rumpf | 2019-03-19 | 1 | -0/+3 |
| | |||||
* | rename: semasgn -> liftdestructors | Andreas Rumpf | 2019-03-14 | 1 | -1/+1 |
| | |||||
* | fixes #10791 | Andreas Rumpf | 2019-03-06 | 1 | -0/+3 |
| | |||||
* | special typing rules for owned pointers | Andreas Rumpf | 2019-03-04 | 1 | -0/+4 |
| | |||||
* | gc:destructors: progress | Andreas Rumpf | 2019-02-28 | 1 | -0/+1 |
| | |||||
* | Tuple unpacking now works for `for` vars (#10152) | Neelesh Chandola | 2019-02-23 | 1 | -16/+54 |
| | | | | | | | | * 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 | ||||
* | first steps in implementing 'owned' pointers; undocumented, do not use | Andreas Rumpf | 2019-02-23 | 1 | -7/+7 |
| | |||||
* | 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 #10702 (#10705) | Andreas Rumpf | 2019-02-18 | 1 | -19/+22 |
| | | | | | | * --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 | ||||
* | Print missing case labels (#10600) | Arne Döring | 2019-02-09 | 1 | -0/+3 |
| | |||||
* | Avoid evaluating macros twice in type sections (#10550) | LemonBoy | 2019-02-06 | 1 | -0/+5 |
| | | | Fixes #10548 | ||||
* | gc: destructors is beginning to work (#10483) | Andreas Rumpf | 2019-01-29 | 1 | -1/+2 |
| | | | | | | | | | | | | | | | | * kochdocs.nim: code cleanup * docgen: nicer indentation * parser.nim: code cleanup * fixes #10458 * make tests green again * make =destroy mixins * gc:destructors: produced C code is almost working * --gc:destructors simple program compiles (but leaks memory) * gc:destructors make examples compile in C++ mode * destructors: string implementation bugfixes * strs.nim: minor code cleanup * destructors: builtin seqs are beginning to work * remove debugging helpers | ||||
* | Harmonize the var/let and const handling (#10410) | LemonBoy | 2019-01-23 | 1 | -4/+14 |
| | | | Fixes #10333 | ||||
* | Fix semantic analysis with noReturn proc in tail pos (#10422) | LemonBoy | 2019-01-23 | 1 | -1/+2 |
| | | | Fixes #10417 | ||||
* | Fix compileTime pragma applying to whole var/let section (#10389) | Neelesh Chandola | 2019-01-22 | 1 | -6/+4 |
| | |||||
* | Correct lineinfo for accent quoted symbols in proc definition (#10399) | alaviss | 2019-01-21 | 1 | -10/+10 |
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * compiler/parser: preserve lineinfo for accent quoted symbols Previously the lineinfo for symbol $$$ in this example is: proc `$$$` ^ After this commit: proc `$$$` ^ * compiler/semstmts: correct lineinfo for accent quoted idents Previously nimsuggest would highlight this as: proc `$$$` ^~~ After this commit: proc `$$$` ^~~ * nimsuggest/tests: add a test for accent quoted proc Disabled by default | ||||
* | destructors: first step towards fixing #9617 (#10341) | cooldome | 2019-01-18 | 1 | -2/+15 |
| | |||||
* | Properly wrap discarded statements (#10322) | LemonBoy | 2019-01-17 | 1 | -10/+14 |
| | | | | | | Failing to do so lead the codegen to emit invalid code sometimes, especially when C++ references were involved. Fixes #10241 | ||||
* | typed/untyped return type is invalid for everything except templates and ↵ | Neelesh Chandola | 2019-01-15 | 1 | -3/+0 |
| | | | | macros (#10275) | ||||
* | add custom pragma support for var and let symbols (#9582) | jcosborn | 2019-01-07 | 1 | -4/+19 |
| | | | | | | * add custom pragma support for var and let symbols * updated changelog for custom pragmas on var and let symbols * add oldast switch for backwards compatibility | ||||
* | exportc is now not allowed for type aliases (#9979) | Neelesh Chandola | 2019-01-02 | 1 | -0/+2 |
| | |||||
* | Deprecate gc v2 (#10151) | Neelesh Chandola | 2019-01-01 | 1 | -1/+1 |
| | | | | | | * Deprecate gc v2 * warnDeprecated now has custom messages | ||||
* | Check there are no side effects before optimizing away compile time ↵ | deech | 2018-12-31 | 1 | -0/+2 |
| | | | | expressions. (#9934) | ||||
* | Fix const tuple unpacking not working for variables > 2 (#10099) | Neelesh Chandola | 2018-12-27 | 1 | -1/+1 |
| | |||||
* | fixes nim-lang/nimsuggest#76 (#10093) | alaviss | 2018-12-25 | 1 | -1/+11 |
| | | | | | | | | * nimsuggest: prevent out-of-bound access * fixes nim-lang/nimsuggest#76 * undo tester changes | ||||
* | much simpler implementation of constant tuple declarations | Andreas Rumpf | 2018-12-19 | 1 | -12/+12 |
| | |||||
* | Const tuple unpacking (#9964) | Neelesh Chandola | 2018-12-19 | 1 | -19/+41 |
| | | | | | | | | | | * tuple unpacking is now supported for consts * Move nkConstTuple to the end of TNodeKind * Add nnkConstTuple in macros.nim * Fix Formatting | ||||
* | Fixes #3060 and adds error checking for invalid else branches in object ↵ | Andreas Rumpf | 2018-12-19 | 1 | -7/+0 |
|\ | | | | | | | | | | | | | | | | | | | | | | | variants (#9957) * Fix semRecordCase * Fix ftpclient.nim * Check for ordinal type * Check tyRange for exhaustiveness | ||||
| * | Merge remote-tracking branch 'upstream/devel' into record-case | Neelesh Chandola | 2018-12-13 | 1 | -1/+3 |
| |\ | |||||
| * | | Fix semRecordCase | Neelesh Chandola | 2018-12-13 | 1 | -7/+0 |
| | | | |||||
* | | | --gc:destructors: baby steps | Andreas Rumpf | 2018-12-15 | 1 | -0/+9 |
| | | | |||||
* | | | better error message for 'proc' that is not intended to be used as a typeclass | Andreas Rumpf | 2018-12-15 | 1 | -4/+8 |
| |/ |/| | |||||
* | | Give error when case has an else branch even though all cases are already ↵ | Neelesh Chandola | 2018-12-13 | 1 | -1/+3 |
|/ | | | | | | | | | covered (#9930) * Give error when case has an else branch even though all cases are already covered. * Don't check for invalid else for type tyFloat..tyFloat128, tyString, tyError * Remove unnecessary else in unittest.nim * Fix sockets.nim | ||||
* | custom pragmas in pragma blocks | Andrii Riabushenko | 2018-12-11 | 1 | -7/+5 |
| | |||||
* | Merge pull request #9911 from nc-x/fixes-#9627 | Andreas Rumpf | 2018-12-09 | 1 | -7/+23 |
|\ | | | | | `include` now accepts collective arguments | ||||
| * | `include` now accepts collective arguments | Neelesh Chandola | 2018-12-09 | 1 | -7/+23 |
| | |