summary refs log tree commit diff stats
path: root/compiler/sigmatch.nim
Commit message (Collapse)AuthorAgeFilesLines
* bugfix: in some contexts, newSeq[T](n) is incorrectly inferred to have a ↵Zahary Karadjov2013-12-261-2/+4
| | | | seq[typedesc[T]] type
* better integration of tyStatic into typeRelZahary Karadjov2013-12-251-32/+28
|
* wip type class reforms (the compiler bootstraps fine)Zahary Karadjov2013-12-251-16/+24
| | | | | | * replace tfAny and tfAll with tyAnd and tyOr * integrate matchTypeClass into typeRel * introduce tyBuiltInTypeClass to handle types such as tuple, object, proc, etc
* make the current PContext accessible through TCandidateZahary Karadjov2013-12-251-26/+33
| | | | | | the goal here is to remove all the hacks from ParamTypeMatch and to handle all type matching in typeRel (the context there is required to evaluate any static params and to run the compilation tests of user-defined type classes)
* static params: expr[T] is now static[T]Zahary Karadjov2013-12-191-29/+33
| | | | | | | 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.
* progress towards adding negative type classesZahary Karadjov2013-12-091-24/+227
| | | | | | [unittest bugfixes] the block form of check now allows comments errors when inspecting the arguments of var-accepting procs
* adding some provisions for writing lower-level unit tests targeting specific ↵Zahary Karadjov2013-12-071-2/+15
| | | | | | | | sub-systems of the compiler see sigmatch as an example. tests are compiled only when the compiler is compiled with -d:selftest to execute them, just run the resulting binary without arguments
* simple unit test and better documentation for the user defined type classesZahary Karadjov2013-11-171-14/+8
|
* improvements for the `is` operator; implemented the type lifting rule in ↵Zahary Karadjov2013-11-171-10/+19
| | | | user-defined type classes
* support for multiple test variables and var qualifiers in user-defined type ↵Zahary Karadjov2013-11-131-4/+17
| | | | classes
* Merge branch 'type-classes' into upstreamZahary Karadjov2013-09-031-41/+82
|\
| * minor improvement towards tgenericshardcasesZahary Karadjov2013-08-281-16/+23
| |
| * implemented delegators and improved the error messages of unmatched type classesZahary Karadjov2013-08-261-22/+0
| |
| * working code for simple cases of user-defined type classesZahary Karadjov2013-08-251-3/+59
| |
* | bugfix: conversions to float32 are allowed again but of lower priorityAraq2013-08-301-3/+3
| |
* | conversions to float32 are allowed again but of lower priorityAraq2013-08-301-3/+3
| |
* | Merge branch 'master' of github.com:Araq/NimrodAraq2013-08-301-2/+6
|\|
| * implemented and documented the new typedesc binding rulesZahary Karadjov2013-08-231-2/+4
| |
| * pass-through of static int generic params to arrays when late instantiation ↵Zahary Karadjov2013-08-231-1/+2
| | | | | | | | is disabled
| * Experimental support for delayed instantiation of genericsZahary Karadjov2013-08-231-1/+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.
* | float64 is now an alias to 'float'; fixes #545Araq2013-08-301-3/+7
|/
* hacky fix for generic constraints matchingZahary Karadjov2013-08-191-1/+22
|
* some steps to improve the type mismatches with the newZahary Karadjov2013-08-191-9/+13
| | | | generic instantiation logic
* Revert "Revert "static and default params for generics""Zahary Karadjov2013-08-191-5/+14
| | | | This reverts commit 0662ec4a434f4656b5afc486bc4ebaab82c52da6.
* 'modules' module from 'main'; minor bugfixesAraq2013-07-201-2/+4
|
* fixes #442Araq2013-06-271-11/+20
|
* improvements for 'not nil' checkingAraq2013-06-131-4/+27
|
* fixes #385Araq2013-06-031-3/+18
|
* Revert "static and default params for generics"Araq2013-05-271-14/+5
| | | | This reverts commit 46813bbe4e1423181521d4792b9af7593f48fa1f.
* static and default params for genericsZahary Karadjov2013-05-261-5/+14
|
* fixes #119Araq2013-05-181-2/+1
|
* fixes #430Zahary Karadjov2013-05-121-6/+12
|
* fixes #429 and tstmtexprZahary Karadjov2013-05-121-3/+4
|
* Merge branch 'master' of gh:/Araq/Nimrod into upstreamZahary Karadjov2013-05-041-22/+124
|\
| * fixes #287; bugfix: subrange checking is performed againAraq2013-04-121-1/+20
| |
| * fixes a long-standing bug about procvar checkingAraq2013-03-251-4/+4
| |
| * Removes executable bit for text files.Grzegorz Adam Hankiewicz2013-03-161-0/+0
| |
| * make some tests greenAraq2013-03-031-7/+13
| |
| * lazy operand sem'checking (beware)Araq2013-03-021-14/+49
| |
| * better overloading resolution for genericsAraq2013-02-281-1/+43
| |
* | containerID is no longer needed for genericsZahary Karadjov2013-03-011-5/+4
|/
* implements #295Araq2013-01-081-2/+3
|
* fixes #271Araq2012-12-151-20/+14
|
* implemented AST based overloadingAraq2012-12-061-4/+15
|
* implemented generic convertersAraq2012-12-051-3/+16
|
* disable SSLv2_method for ubuntuAraq2012-12-031-3/+3
|
* next steps for first class iteratorsAraq2012-11-261-0/+2
|
* first steps for 'not nil' annotationAraq2012-11-251-18/+19
|
* next steps for exception trackingAraq2012-11-031-0/+2
|
* caas barely works nowAraq2012-10-241-0/+2
|