Commit Graph

380 Commits

Author SHA1 Message Date
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
Araq
0591c68aaf fixes #2369 2015-03-21 20:38:27 +01:00
Araq
16adfcdfa6 fixes #2366 2015-03-21 20:38:25 +01:00
Araq
4077f7d49c fixes #1791 2015-03-12 16:04:44 +01:00
Andreas Rumpf
df0473d754 Merge pull request #2239 from Maxdamantus/devel
interpret `tuple` as a class and `tuple[]` as the empty tuple, enable syntax for anonymous tuples
2015-03-07 17:35:14 +01:00
Araq
d58212ccc5 fixes #1940; code breakage! stricter template evaluation 2015-03-07 15:43:36 +01:00
Max Zerzouri
dba25d2622 enable syntax for anonymous tuples.
Turns out to be slightly problematic as `(int, int)` could be logically
thought of as an expression evaluating to a tuple value containing
two typedesc[int]s.

To disambiguate, the zero-tuple's type must still be written as
`tuple[]`, and what would be tuple value expressions containing only
typedescs are interpreted as types.

() # value of type `tuple[]`
(int, int) # tuple type
(int, int, ()) # value of type `(typedesc[int], typedesc[int], tuple[])`
2015-03-06 12:23:31 +13:00
Max Zerzouri
9c126282b2 interpret tuple as a class and tuple[] as the empty tuple
When the indentation syntax is allowed it is always interpreted as a
tuple:

type
  Unit = tuple
2015-03-06 12:20:15 +13:00
Araq
1e6aef62ba macros.PNimrodNode is now NimNode 2015-02-24 00:13:27 +01:00
Araq
1e796ed9d9 fixes #2051 2015-02-20 16:09:43 +01:00
Federico Ceratto
657dca5c3b Fix typos 2015-02-15 16:20:32 +00:00
Federico Ceratto
c95f6f117a Fix typos 2015-02-15 16:06:06 +00:00
Araq
4876aabb39 fixes #2113 2015-02-13 02:08:45 +01:00
Araq
c44d947ac5 'auto' can be inferred to be 'void' 2015-02-13 01:21:54 +01:00
Araq
3a8f7d505b temptyseqs works again 2015-02-10 20:19:45 +01:00
Araq
34b4e9fc96 fixes #2004 2015-02-08 15:43:50 +01:00
Araq
d933fde40d yet another C++ bugfix 2015-02-07 10:48:08 +01:00
Araq
74c6c8c903 compiler distinguishes between 2 different 'var' types for C++ interop; code cleanups 2015-02-07 10:48:07 +01:00
Araq
b5f1957588 fixes #2057 2015-02-04 12:51:54 +01:00
Andreas Rumpf
7f14d0e782 Merge pull request #2031 from reactormonk/high-cstring
Fixes #2030
2015-02-04 10:39:49 +01:00
Araq
ee4e95fefe fixes #2039 2015-01-31 11:31:59 +01:00
Simon Hafner
5ecc461a94 Fixes #2030 2015-01-29 04:40:27 -06:00
Araq
a4b2762249 fixes #325 2015-01-28 19:31:36 +01:00
Araq
217390d181 do not warn about unknown conditional symbols anymore 2015-01-27 01:33:49 +01:00
Araq
603f36bc86 implements auto-deref for the first argument (requires .experimental) 2015-01-27 01:33:47 +01:00
Araq
5ae8689b63 better error message for 'invalid type' 2015-01-23 00:36:56 +01:00
Araq
a295866ce8 get rid of debug output 2015-01-18 21:22:20 +01:00
Araq
5f6131cbdc fixes #1944 2015-01-18 14:44:16 +01:00
Araq
abb738146a revert to old behaviour: tuple field names are not ignored anymore; fixes #1920 2015-01-18 02:33:44 +01:00
Araq
b9079b8713 fixes #1915 2015-01-12 02:00:37 +01:00
Araq
9d0ae03918 fixes #1838 2015-01-11 13:51:30 +01:00
Araq
65310266d8 Merge branch 'devel' of https://github.com/Araq/Nim into devel
Conflicts:
	compiler/semexprs.nim
2015-01-07 02:44:22 +01:00
Araq
b907fac5f9 minor cleanups 2015-01-07 02:41:50 +01:00
Zahary Karadjov
1d5ecc0dea fix #1050 2015-01-02 23:58:24 +02:00
Araq
e751a0af57 Merge branch 'devel' of https://github.com/Araq/Nim into devel 2014-12-31 16:08:07 +01:00
Araq
2ee2401336 fixes #1774 2014-12-31 16:07:56 +01:00
Zahary Karadjov
b83b1383fb fix #1056 2014-12-31 04:18:35 +02:00
Zahary Karadjov
da36a847a7 fix #1789 (binding to static params during generic proc sigmatch) 2014-12-31 01:45:23 +02:00
Araq
27f1743793 release of 0.10.2 2014-12-29 10:32:00 +01:00
Araq
f73938218e fixes #1708, fixes #871 2014-12-28 01:59:30 +01:00
Araq
9280473eb1 fixes #1120 2014-12-25 17:22:41 +01:00
Araq
c0cc62c6b1 tuple field names are ignored 2014-12-23 17:54:22 +01:00
Araq
7deb8b2e7b fixed typos so docgen works again 2014-12-20 22:39:05 +01:00
Araq
e9619d7278 fixes #1655 2014-12-17 01:11:30 +01:00
Araq
4b7de4dc5e implemented 'experimental' switch 2014-12-05 10:09:29 +01:00
Araq
c2e04abcfa fixes regression that caused pegs to not compile 2014-11-29 14:08:42 +01:00
Araq
105a0616a9 implemented procCall builtin 2014-11-28 02:43:41 +01:00