Commit Graph

426 Commits

Author SHA1 Message Date
Andreas Rumpf
be2efa69ea refactorings 2016-05-30 00:59:02 +02:00
Andreas Rumpf
e52044660d Merge branch 'patch/fix-3496-generic-tmpl-args' of https://github.com/nanoant/Nim into nanoant-patch/fix-3496-generic-tmpl-args 2016-05-29 23:58:25 +02:00
Andreas Rumpf
426306eeb4 fixes #3882 2016-05-28 17:43:47 +02:00
Andreas Rumpf
6d76df8454 fixes #4227 2016-05-27 19:18:08 +02:00
Andreas Rumpf
eae30d1961 fixes #950 2016-05-12 00:38:15 +02:00
Andreas Rumpf
95ffeb6079 fixes #177 2016-05-11 17:39:37 +02:00
Araq
0dc92960d2 include statement is not restricted to top level statements anymore 2016-05-10 22:03:07 +02:00
Andreas Rumpf
f348671ba7 fixes #3544 2016-04-30 01:12:36 +02:00
Andreas Rumpf
8dfdea8919 fixes #4097 2016-04-19 11:56:35 +02:00
Andreas Rumpf
c9966a3e17 use 'using' instead of 'sig' keyword; cleans up new features a bit 2016-02-29 12:19:54 +01:00
Andreas Rumpf
38dee2095c added 'sig' feature; removed tfShared support in the compiler 2016-02-28 19:56:41 +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
159a2ff955 fixes #3636 2016-01-04 02:04:59 +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
760242b870 removes 'x is iterator' special casing in the language 2015-12-03 01:08:03 +01:00
Araq
5de900b456 added iterToProc plugin 2015-12-01 00:53:30 +01:00
Araq
d673fb3911 nimsuggest: added 'chk', 'outline' and 'highlight' features 2015-11-01 23:26:31 +01:00
Adam Strzelecki
47e45dee7e fixes #3496
The problem comes from the fact that macroOrTmpl[...] is transformed by
semSubscript which is trying to evaluate macroOrTmpl identifier in place. This
is okay for non-generic macros or templates, but wrong for generic ones, that
do not have a chance to receive their generic arguments explicitly specified in
brackets.

Solution:

1. macroOrTmpl[...] where macroOrTmpl is non-generic macro or template, then
   macroOrTmpl is evaluated before applying brackets. (as before)

2. macroOrTmpl[...] where macroOrTmpl is generic macro or template, then if:

   a. It comes from macroOrTmpl[...](...) call expr (efInCall), then macroOrTmpl
      is turned into a symbol (efNoEvaluate) rather than evaluating it in place,
      then whole bracket expr is returned to semIndirectOp which transforms it
      to proper generic macro or template call with explicit generic arguments.

   b. macroOrTmpl[...] does not come from call expr, as above macroOrTmpl is
      transformed to symbol, then it is transformed into proper generic macro or
      template call with explicit generic arguments and no normal arguments.
2015-10-29 23:10:45 +01:00
Araq
e722770fbb doc\advopt.txt
added --reportConceptFailures switch
2015-10-22 12:14:31 +02:00
Araq
3fef9f08bd fixes regression: tactiontable 2015-10-14 14:35:44 +02:00
Araq
c921f30b1d renamed inCompilesContext to compilesContextId; added test case for #3313 2015-09-18 11:29:43 +02:00
Araq
5b2f54ffa1 fixes #3313 2015-09-18 11:24:16 +02:00
Araq
1251fc76c3 fixes #3212 2015-09-14 20:30:55 +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
Yuriy Glukhov
4ef4ad305c Fixed nimvm in generics. 2015-09-07 13:49:32 +03:00
Yuriy Glukhov
49869a2b10 when nimvm stmt proof of concept 2015-09-04 20:50:29 +03:00
Araq
bfd2fd67f9 tuple unpacking works in a non-var/let context 2015-08-21 21:34:14 +02:00
Araq
2f721f0d99 'parallel' now requires --experimental mode 2015-08-14 02:19:32 +02:00
Yuriy Glukhov
41a2a9f00b Fixes #3185 2015-08-06 22:19:33 +03:00
Araq
0d8942d45e destructors now work with overloaded assignment operators; fixes #2811; fixes #1632 2015-08-05 21:43:14 +02:00
Araq
ab26298a03 added system.unsafeAddr 2015-08-04 17:31:18 +02:00
Araq
b0b716fca7 fixes #3079, fixes #1146, fixes #2879 2015-07-22 16:32:56 +02:00
Araq
36ca2f1102 fixes #3051 2015-07-05 15:00:47 +02:00
Araq
28de800d61 Merge branch 'more_concurrency' into devel
Conflicts:
	doc/tut1.txt
	lib/core/locks.nim
	lib/pure/collections/tables.nim
	lib/pure/selectors.nim
2015-06-30 12:50:24 +02:00
Araq
afad61c220 fixes #2731 2015-06-26 00:05:29 +02:00
Araq
94f54700c4 first implementation of pinnedSpawn 2015-05-28 12:42:04 +02:00
Araq
e23857a98b fixes #2629, fixes #2641, fixes #2632, fixes #2630 2015-05-03 01:08:52 +02:00
Araq
26eae7d00e fixes #2470, fixes #1354 2015-04-28 20:21:53 +02:00
Araq
4550a2fb5c fixes #2602 2015-04-26 22:44:06 +02:00
Araq
4d20aafb5e fixes #2372 2015-04-25 23:16:57 +02:00
Araq
e55f5d1fd4 fixes #2505, fixes #1853, fixes #2522 2015-04-20 21:25:49 +02:00
Araq
49471440eb fixes #2481 2015-04-10 14:03:49 +02:00
Araq
05e39cf6ad overloading of '=' works 2015-04-06 23:21:52 +02:00
Araq
78f371c03a first implementation of overloading of '='; missing: rewriting let/var sections 2015-04-06 23:21:51 +02:00
Araq
165619552a fixes #2355 2015-03-28 00:47:03 +01:00
Araq
5d63ecb3a4 implemented a[^1] notation 2015-03-26 02:12:38 +01:00
Araq
43228a704f fixes #2404 2015-03-25 13:21:50 +01:00
Araq
08c0ba379a fixes #1805 2015-03-21 20:38:28 +01:00