summary refs log tree commit diff stats
path: root/compiler/semmagic.nim
Commit message (Collapse)AuthorAgeFilesLines
* fixes #13095 (#13181)cooldome2020-01-171-0/+3
| | | | | | * fixes #13095 * fix typo
* fixes #13112 (#13127)Andreas Rumpf2020-01-131-2/+9
| | | | | | * improve line error information * fixes #13112
* more arc features (#13098)Andreas Rumpf2020-01-101-0/+31
| | | | | * config update * ARC now supports 'repr' and 'new' with finalizers is supported
* distinctBase type trait for distinct types (#13031)cooldome2020-01-081-0/+16
|
* fixes #12804 (#12809)cooldome2019-12-051-2/+2
|
* Cosmetic compiler cleanup (#12718)Clyybber2019-11-281-37/+36
| | | | | | | | | | | | | | | | | | * Cleanup compiler code base * Unify add calls * Unify len invocations * Unify range operators * Fix oversight * Remove {.procvar.} pragma * initCandidate -> newCandidate where reasonable * Unify safeLen calls
* error message: Nim calls it 'proc'Andreas Rumpf2019-11-071-1/+1
|
* fix deprecation warnings related to Int128 (#12474)Miran2019-10-281-2/+2
| | | | | | | | * semfold: fix deprecation warnings related to Int128 * semmagic: fix deprecation warnings related to Int128 * system/io: remove unneeded conversion of TaintedString to itself
* Fix spellings (#12277) [backport]Federico Ceratto2019-09-271-1/+1
|
* Small ast.nim cleanup (#12156)Clyybber2019-09-091-2/+2
| | | | | * Remove sonsLen * Use Indexable
* typeToString can now show (recursively) resolved type aliases; fixes #8569 ↵Timothee Cour2019-08-311-0/+8
| | | | | | | | | | | #8083 #8570 (#11678) * nested typeToString * typeToString: preferResolved * add test * fix test * preferMixed * fix tests
* int128 on firstOrd, lastOrd and lengthOrd (#11701)Arne Döring2019-08-071-2/+4
| | | | * fixes #11847
* revert changesAndrii Riabushenko2019-07-251-2/+2
|
* fixes #11826Andrii Riabushenko2019-07-251-2/+2
|
* Offsetof fixes (#11690)Arne Döring2019-07-091-44/+3
| | | | | | | | * first fixes * more tests and fixes * code normalization
* fixes #11610 (#11659)Andreas Rumpf2019-07-051-0/+2
|
* fixes #7937 (#11244)Andreas Rumpf2019-05-141-3/+4
|
* added system.unown to make 'owned' sane to use in practice; later on we ↵Araq2019-04-291-0/+35
| | | | might change the type inference rules to make it more convenient
* more destructor based changes (#10885)Andreas Rumpf2019-03-231-0/+5
| | | | | | | | | | | * 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
* fixes #10807 (#10814)cooldome2019-03-121-5/+5
| | | | | * fixes #10807 * use nkAddr instead of nkHiddenAddr
* 32 bit fixes (#10608)Arne Döring2019-02-131-3/+11
|
* Stop useless suggestion of unsafeAddr (#10598)LemonBoy2019-02-081-1/+6
| | | Fixes #10594
* Finalizer proc must be global (#10388)LemonBoy2019-01-221-0/+5
| | | Fixes #10376
* fix typetraits.`$` regression https://github.com/c-blake/cligen/issues/84 ↵Timothee Cour2018-12-301-2/+3
| | | | | | | (#10131) * fix typetraits.`$` regression https://github.com/c-blake/cligen/issues/84 * add test
* revives: Move typetraits.`$` to system. Fixes #5827 (#10071)Timothee Cour2018-12-301-1/+1
| | | | | | * Move typetraits.`$` to system. Fixes #5827. * revive PR; adjust code to make sure everything works and add tests * fix tests/concepts/tstackconcept.nim * address comments
* fixes #9868Araq2018-12-111-2/+0
|
* fixes #7365alaviss2018-11-261-1/+1
|
* Fixes multiple bugs with sink arguments (#9802)cooldome2018-11-261-1/+1
| | | | | | * fixes #9781 * fix spacing
* Of operator in vm fixes [backport] (#9717)cooldome2018-11-151-1/+7
| | | | | | * fixes #9701 * fixes #9702 * optimize of statement to bool
* fixes #9610Andreas Rumpf2018-11-031-17/+13
|
* fixes #9498, typeof is for everybodyAraq2018-10-251-3/+9
|
* implement sizeof and alignof operator (manually squashed #5664) (#9356)Timothee Cour2018-10-141-2/+55
|
* fixes #7827, bindSym enhancement (#8499)andri lim2018-08-021-1/+66
| | | | | | | | | | | | | | | | * bindSym power up, working prototype * update bindSym doc * add bindSym test * fix some typo * fix bindSym doc * get rid of specialops field from vm * add experimental: dynamicBindSym
* Do not consider enums with holes as ordinals (#8264)LemonBoy2018-07-121-1/+1
| | | | | | Make the compiler behave consistently with respect to what's written in the manual. Fixes #1239
* refactoring: remove idents.legacy global variable and pass the IdentCache ↵Andreas Rumpf2018-05-271-2/+2
| | | | around explicitly
* refactoring: fewer global variablesAndreas Rumpf2018-05-271-1/+1
|
* remove more global variables in the Nim compilerAndreas Rumpf2018-05-271-1/+1
|
* platform.nim doesn't use globals anymore; prepare msgs.nim for not using globalsAndreas Rumpf2018-05-181-5/+1
|
* preparations of making compiler/msgs.nim free of global variablesAndreas Rumpf2018-05-171-1/+1
|
* remove ast.emptyNode global; cleanup configuration.nimAraq2018-05-161-1/+1
|
* fixes testament compilationAraq2018-05-141-0/+4
|\
| * A motivating example for the new `bindSym` behavior.Zahary Karadjov2018-05-071-1/+1
| | | | | | | | | | | | | | | | The example is a proof-of-concept logging library, allowing you to define lexically-scoped environments where certain logging attributes are applied automatically to all logging statements. fixes tmacro1 (use of `bindSym` inside static blocks)
| * Better support for treating templates and macros as symbols.Zahary Karadjov2018-05-071-0/+4
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This allows you to pass a template or a macro to another macro which can then inspect the implementation of the former template/macro using `getImpl`. Since templates can be freely redefined, this allows you to treat their symbols as compile-time variables that have lexical scope. A motivating PoC example for a logging library taking advantage of this will be provided in the next commit. Implementation details: * The name of a template or a macro will be consider a symbol if the template/macro requires parameters * For parameterless templates/macros, you can use `bindSym`, which was extended to also work outside of compile-time procs.
* | sem pass compiles againAndreas Rumpf2018-05-121-21/+21
| |
* | more modules compile againAndreas Rumpf2018-05-121-14/+14
|/
* introduce nkTupleConstr AST node for unary tuple construction; breaking changeAndreas Rumpf2018-04-131-1/+1
|
* Add column number to instantiation info (#7376)PMunch2018-04-121-0/+3
| | | | | | | | | | | | | | * Add column number to instantiation info Instantiation info left out column number for no good reason. This adds it in as the third element of the tuple. * Fix test that failed and added change to changelog An assertion test failed because it was declaring a type that was expected to be populated by instantiationInfo with the old signature. Also added the changes to the changelog as it is a breaking change.
* preparations for language extensions: 'sink' and 'lent' typesAndreas Rumpf2018-01-071-2/+2
|
* make tests green againAndreas Rumpf2017-11-181-1/+1
|
* wipAndreas Rumpf2017-11-021-1/+3
|