Andreas Rumpf
1a61c4d46d
first implementation of the 'func' keyword
2017-09-23 23:22:53 +02:00
Zahary Karadjov
367d232351
fix #1017 ; fix #3309
2017-06-20 11:29:42 +02:00
Araq
68d606d773
improve confusing error messages for failed overloading resolution when deref of first arg failed
2017-05-31 14:34:46 +02:00
Zahary Karadjov
a802d72452
doh, forgot to add all files in the previous commit
2017-05-12 12:46:09 +03:00
Araq
87732f797c
fixes #5638
2017-04-04 12:08:34 +02:00
Araq
e105c04e49
revert PR #5638 because it breaks code
2017-04-04 10:43:54 +02:00
Anatoly Galiulin
5fdd03ad4d
Fixed issue #5638 ( #5639 )
2017-04-01 14:14:34 +02:00
Zahary Karadjov
c11d7c35dd
make all tests green again
...
properly disabling the extra diagnostics in semCompiles proved to
be too much work. I have some plans for further improving the error
messages in the future and I'll revisit this later.
2017-03-31 01:53:11 +03:00
Zahary Karadjov
a74ad869e9
requested code review changes
2017-03-29 16:15:30 +03:00
Zahary Karadjov
d6d548c32f
carefully reviewed and merged the changes from the devel branch
2017-03-24 17:03:55 +02:00
Zahary Karadjov
fe48dd1cbe
further improvements to the error messages produced by concepts
2017-03-24 16:59:47 +02:00
Zahary Karadjov
74a80988d9
proper error reporting for concepts and the introduction of the {.explain.} pragma
2017-03-24 16:59:47 +02:00
Zahary Karadjov
a90c4c4d7e
kill the reportConceptFailures options as it will be replaced by the .explain. pragma
2017-03-24 16:58:15 +02:00
Andreas Rumpf
01b2728ec8
fixes a potential endless loop
2017-03-20 10:56:15 +01:00
zah
1be0022e7c
Fixes #5167 and related problems ( #5475 )
...
This commit returns to a bit less strict checking of the number
of macro arguments, because some old immediate macros rely on a
behavior where even the arity of the macro is not being checked.
It may be better if such macros are just declared to use varargs[expr],
but this remains for another day.
2017-03-12 09:33:49 +01:00
Araq
2589d69ed2
fixes #5430
2017-02-26 00:32:07 +01:00
Andreas Rumpf
46efaf294b
big compiler refactoring; avoid globals for multi method dispatcher generation
2017-02-22 16:27:52 +01:00
Araq
e6c5622aa7
removed tyArrayConstr completely from the compiler; introduced tyAlias instead in preparation for further bugfixes
2016-11-14 23:18:30 +01:00
Andreas Rumpf
2d2b1a9d48
fixes a simple .borrow bug
2016-10-14 12:17:12 +02:00
Andreas Rumpf
3a5edd2c6c
fixes #4671
2016-09-13 16:33:43 +02:00
Matthew Baulch
3fef725d92
pickBestCandidate: pre-calculate candidates when symbol table modified
2016-09-03 20:20:48 +10:00
Andreas Rumpf
da8f6e16cc
fixes #4491
2016-08-26 15:19:32 +02:00
Andreas Rumpf
d3888577e9
fixes #3928
2016-08-26 15:15:18 +02:00
Matthew Baulch
b0c12a7dc4
Optimise pickBestCandidate: reduce heap allocations.
2016-08-21 12:41:55 +10:00
Andreas Rumpf
0ed8d80521
fixes #4534
2016-08-01 01:32:19 +02:00
Andreas Rumpf
8f457f6ebb
make tests green again
2016-07-29 23:51:01 +02:00
Andreas Rumpf
db56174a19
fixes #3548
2016-07-15 00:22:14 +02:00
Andreas Rumpf
995727ffd0
decent error message for 'var T' problems
2016-07-15 00:22:14 +02:00
Andreas Rumpf
4180f59b27
fixes #1713
2016-05-30 16:24:52 +02:00
Andreas Rumpf
e04f319540
fixes #4084
2016-04-29 22:30:00 +02:00
Andreas Rumpf
554a3e9335
better 'self' handling for overload resolution
2016-02-29 00:25:51 +01:00
Andreas Rumpf
7ae45ea420
'using' statement is obsolete
2016-02-28 14:48:15 +01:00
Andreas Rumpf
1afdefcbe9
added experimental .this pragma
2016-02-28 03:17:20 +01:00
Andreas Rumpf
ee6a46f264
some progress on #3832
2016-02-08 01:43:38 +01:00
Andreas Rumpf
a2db3c24d1
fixes #3799
2016-01-30 23:09:55 +01:00
Andreas Rumpf
c1627354d1
first implementation of the new lambda-lifting pass; barely anything works
2015-12-26 00:42:30 +01:00
Araq
9cc25f8b77
fixes #3452
2015-10-22 12:14:32 +02:00
Araq
c921f30b1d
renamed inCompilesContext to compilesContextId; added test case for #3313
2015-09-18 11:29:43 +02:00
Araq
e01e0a4b40
next steps in binding [] properly
2015-09-13 22:42:21 +02:00
Araq
8ef66b973d
first attempt to fix 'a[i]' handling in generics
2015-09-12 10:55:28 +02:00
Adam Strzelecki
d681812465
compiler: Trim .nim files trailing whitespace
...
via OSX: find . -name '*.nim' -exec sed -i '' -E 's/[[:space:]]+$//' {} +
2015-09-04 23:03:22 +02:00
Zahary Karadjov
02f97489b7
fix #1858 again; restores the support for static macro params
2015-08-02 23:58:22 +03:00
Dominik Picheta
1cf1610bdf
Rename errUndeclaredProcedure to errUndeclaredRoutine.
2015-06-05 14:50:14 +01:00
Dominik Picheta
5d6f16cc1a
Got rid of errUndeclaredProcedureField.
2015-06-04 16:39:38 +01:00
Dominik Picheta
22f6017ab8
Fixes #2584
...
Better compiler errors for accessing undeclared fields, calling undeclared
procedures and procedure fields.
2015-06-04 13:55:48 +01:00
Araq
2b80d75aa2
fixes #2420 ; negative indexing for slicing is obsolete (breaking change!)
2015-03-28 00:15:04 +01:00
Araq
1efb5174f2
fixes #2220 ; #2219 ; breaks #2022 ; for #2022 callsite needs to be used
2015-03-10 12:32:46 +01:00
Araq
cac259cdfb
fixes #2229
2015-03-05 20:39:25 +01:00
Araq
83cab19c62
fixes #2252
2015-03-04 21:19:38 +01:00
Araq
566ee874cd
minor cleanups
2015-03-01 13:52:00 +01:00