summary refs log tree commit diff stats
path: root/compiler/semtypinst.nim
Commit message (Collapse)AuthorAgeFilesLines
* Happy new year!Guillaume Gelin2015-01-061-1/+1
|
* fixes #1187Araq2014-12-191-2/+3
|
* fixes #1687Araq2014-11-301-1/+1
|
* fixes #1562, fixes #1543Araq2014-11-201-0/+2
|
* implemented locking levels; still incompleteAraq2014-09-271-7/+0
|
* deepCopy is instantiated when its corresponding type is instantiatedAraq2014-09-261-0/+12
|
* mostly fixes #1339Zahary Karadjov2014-09-051-2/+6
| | | | | | | | | | | The compiler hangs were caused by the interaction of tyError and the instantiation caches. For procs, the cache wasn't able to find previously compiled proc featuring tyError in the signature. For types, the unresolved type parameters leading to tyError were not replaced everywhere leading to endless replaceTypeVarsT recursion for cyclic types. The fix is still not perfect, because the handling of tyError in other places in the compiler doesn't seem to be complete and the first test case now results in internal error (still, much better than a hang blocking your IDE).
* big renameAraq2014-08-271-1/+1
|
* progress on deepCopyAraq2014-08-011-1/+1
|
* fixes #847Araq2014-04-211-2/+3
|
* removed flawed thread analysis passAraq2014-04-201-1/+1
|
* new concurrency model: first steps; shared is not a keyword anymoreAraq2014-04-141-2/+14
|
* handle arbitrary expressions dependent on static input params in proc signaturesZahary Karadjov2014-03-161-3/+6
|
* more robust handling of proc signatures containing inter-param type referencesZahary Karadjov2014-03-161-5/+5
|
* first phase of tyGenericParam reforms needed for static paramsZahary Karadjov2014-03-161-12/+2
|
* fix #988Zahary Karadjov2014-03-101-3/+2
| | | | trivial crash caused due to unchecked iteration over an empty reclist
* fix #986Zahary Karadjov2014-03-101-1/+3
|
* implements higher-order inline iterators and return type inference for iteratorsZahary Karadjov2014-03-081-1/+6
|
* fix #931 and few more testsZahary Karadjov2014-02-181-3/+6
|
* quite messy implementation of generic lambdas, needs reworking; fixes #715Zahary Karadjov2014-02-171-6/+15
|
* fixes #833Araq2014-02-141-0/+3
|
* tyTypeDesc and tyRange always have 1 child; this might be tyNone but it is ↵Araq2014-02-051-1/+1
| | | | required for skipTypes
* Merge branch 'devel' of https://www.github.com/Araq/Nimrod into develZahary Karadjov2014-01-261-2/+2
|\
| * fixes #838Araq2014-01-251-2/+2
| |
* | support for parametric user-defined type classesZahary Karadjov2014-01-241-1/+4
|/
* 'nil' as a statement is deprecated, use an empty 'discard' insteadAraq2014-01-191-2/+2
|
* progress towards fixing tgenericshardcasesZahary Karadjov2014-01-061-18/+86
|
* introduce tyFromExpr; fixes #618Zahary Karadjov2014-01-041-0/+4
|
* Templates will pick the candidate in the nearest scope when symbols are mixed-inZahary Karadjov2013-12-311-7/+8
|
* migrate the static param handling to ReplaceTypeVars; fix tgenericvariantZahary Karadjov2013-12-301-11/+10
|
* properly remove intLiterals from proc signatures; fixes trettypeinferenceZahary Karadjov2013-12-301-5/+13
|
* handle recursive types during the instantiation of meta types; propagate ↵Zahary Karadjov2013-12-301-19/+79
| | | | tfHasMeta more carefully
* fix the filtering of void params in procs' signaturesZahary Karadjov2013-12-291-4/+20
|
* Merge branch 'upstream' into develZahary Karadjov2013-12-291-31/+52
|\ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Conflicts: compiler/ccgutils.nim compiler/msgs.nim compiler/sem.nim compiler/semexprs.nim compiler/seminst.nim compiler/semmagic.nim compiler/semstmts.nim compiler/semtypes.nim compiler/semtypinst.nim compiler/sigmatch.nim compiler/types.nim compiler/vmgen.nim lib/core/macros.nim lib/system.nim tests/reject/tenummix.nim web/news.txt
| * integrate the logic of fixupProcType into ReplaceTypeVarsZahary Karadjov2013-12-291-15/+27
| |
| * make more tests greenZahary Karadjov2013-12-291-3/+4
| |
| * lift generic parameters from concrete composite type classesZahary Karadjov2013-12-281-4/+5
| |
| * towards support for composite type classes such as seq[Number] and ↵Zahary Karadjov2013-12-271-8/+13
| | | | | | | | SquareMatrix[T]
| * better integration of tyStatic into typeRelZahary Karadjov2013-12-251-4/+4
| |
| * wip type class reforms (the compiler bootstraps fine)Zahary Karadjov2013-12-251-1/+1
| | | | | | | | | | | | * replace tfAny and tfAll with tyAnd and tyOr * integrate matchTypeClass into typeRel * introduce tyBuiltInTypeClass to handle types such as tuple, object, proc, etc
| * static params: expr[T] is now static[T]Zahary Karadjov2013-12-191-2/+2
| | | | | | | | | | | | | | This introduces tyStatic and successfully bootstraps and handles few simple test cases. Static params within macros are no longer treated as PNimrodNodes - they are now equivalent to constants of the designated type.
* | case consistency: cs:partial bootstraps on windowsAraq2013-12-291-1/+1
| |
* | case consistency: next stepsAraq2013-12-291-1/+1
| |
* | case consistency part 4Araq2013-12-271-24/+24
| |
* | case consistency part 2Araq2013-12-271-2/+2
| |
* | case consistency part 1Araq2013-12-271-11/+10
|/
* 'noStackFrame' implies 'naked' in the generated C codeAraq2013-10-061-0/+1
|
* minor improvement towards tgenericshardcasesZahary Karadjov2013-08-281-2/+6
|
* pass-through of static int generic params to arrays when late instantiation ↵Zahary Karadjov2013-08-231-0/+6
| | | | is disabled
* Experimental support for delayed instantiation of genericsZahary Karadjov2013-08-231-2/+2
| | | | | | | | | | | | | | | | | | | | This postpones the semantic pass over the generic's body until the generic is instantiated. There are several pros and cons for this method and the capabilities that it enables may still be possible in the old framework if we teach it a few new trick. Such an attempt will follow in the next commits. pros: 1) It allows macros to be expanded during generic instantiation that will provide the body of the generic. See ``tmacrogenerics``. 2) The instantiation code is dramatically simplified. Dealing with unknown types in the generic's body pre-pass requires a lot of hacky code and error silencing in semTypeNode. See ``tgenericshardcases``. cons: 1) There is a performance penalty of roughly 5% when bootstrapping. 2) Certain errors that used to be detected in the previous pre-pass won't be detected with the new scheme until instantiation.