Andreas Rumpf
d60448fa69
fixes #4869
2016-10-21 03:09:00 +02:00
Andreas Rumpf
3a13706d7d
fixes #4673
2016-09-01 13:02:53 +02:00
Andreas Rumpf
1d1253c87f
fixes #4253
2016-08-26 14:04:56 +02:00
Andreas Rumpf
4d4a993e7f
fixes #2865
2016-08-26 13:51:58 +02:00
Andreas Rumpf
10f445da89
Merge pull request #4592 from arnetheduck/compiler-cleanup
...
Compiler cleanup
2016-08-25 16:50:54 +02:00
Matthew Baulch
4e40d90f6f
Add comments to clarify the roles of abstractX and typedescX types.
2016-08-21 14:13:42 +10:00
Jacek Sieka
4d558e2608
Merge remote-tracking branch 'origin/devel' into compiler-cleanup
2016-08-17 18:49:36 +08:00
Matthew Baulch
8ebce3ce2b
Distinct types derived from ordinal types are ordinal.
2016-08-11 21:11:06 +10:00
Matthew Baulch
623e0763c2
Tidy up isOrdinalType
2016-08-11 21:09:34 +10:00
Jacek Sieka
3cd4cf4320
remove unused stuff
2016-08-09 22:54:27 +08:00
Andreas Rumpf
8f457f6ebb
make tests green again
2016-07-29 23:51:01 +02:00
Andreas Rumpf
60b187513e
stdlib and compiler don't use .immediate anymore
2016-07-29 23:51:01 +02:00
Andreas Rumpf
471672fecc
fix: generic tuples instantiations were cached incorrectly
2016-07-28 20:23:24 +02:00
Andreas Rumpf
f47165af11
fixes #3706
2016-07-13 01:06:33 +02:00
Andreas Rumpf
928222cc67
fixes #4429
2016-07-12 10:31:36 +02:00
Andreas Rumpf
b47d9b7b91
fixes #4371
2016-07-08 10:34:12 +02:00
Matthew Baulch
109c9d551f
Regard nil nodes as having equal type constraints.
2016-07-05 22:56:22 +10:00
Andreas Rumpf
e04f319540
fixes #4084
2016-04-29 22:30:00 +02:00
Yuriy Glukhov
3922a0871d
else: break
2016-04-09 01:33:16 +03:00
Yuriy Glukhov
b6f5c12158
Fixed tr pattern matching for varargs
2016-04-07 21:24:43 +03:00
Andreas Rumpf
38dee2095c
added 'sig' feature; removed tfShared support in the compiler
2016-02-28 19:56:41 +01:00
Andreas Rumpf
b6c18e4bba
breaking change: disallow .closure procs for const
2015-12-29 15:42:12 +01:00
Araq
d93507fd2e
fixes #3338
2015-10-22 10:24:46 +02:00
Ryan Gonzalez
a8e547971f
Fix #3367
2015-09-23 13:44:45 -05:00
Adam Strzelecki
167acf4530
typeToString: Fix shared/not nil on complex types
...
Previously `not nil` flag was not shown on `cstring or nil` or `PType not nil`,
where `type PType = ref Type`, eg. when showing compiler diagnostics.
2015-09-06 20:17:06 +02:00
Araq
cabbcd411d
implements varargs[untyped]; refs #2545 ; to be documented
2015-07-02 16:18:11 +02:00
Araq
6d05ae26e6
fixes regression caused by code cleanups
2015-04-29 22:24:50 +02:00
Araq
26eae7d00e
fixes #2470 , fixes #1354
2015-04-28 20:21:53 +02:00
Araq
248dc42aa5
fixes #2520
2015-04-21 08:17:40 +02:00
Araq
5d63ecb3a4
implemented a[^1] notation
2015-03-26 02:12:38 +01:00
Araq
e7d7097919
fixes #1787
2015-03-22 10:47:07 +01:00
Araq
a541be8935
prepare for upcoming parsing change of unary operators
2015-03-22 09:31:15 +01:00
Araq
0d804c2052
fixes #2266
2015-03-22 01:38:14 +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
4d8cd34c9e
fixes #794
2015-03-07 15:43:35 +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
Araq
3adcad1b5d
fixes #2250
2015-03-05 11:17:14 +01:00
Varriount
3a8455fd8f
Allow ranges with unsigned integer ordinals to be used as parameter types for procedures.
2015-02-21 02:45:06 -05:00
Araq
540f66cb09
fixes #2167
2015-02-20 20:01:23 +01:00
Araq
2bdd0bbaa9
make huge.nim urhonimo example compile
2015-02-18 15:14:10 +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
ecd0dea091
tables work in 'const' sections; echo supports 'nil' strings; minor cleanups
2015-02-09 00:08:55 +01:00
Araq
5ae8689b63
better error message for 'invalid type'
2015-01-23 00:36:56 +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
33c587d06b
patterns for 'importcpp' (still undocumented)
2015-01-14 13:57:59 +01:00
Zahary Karadjov
1b54c55b7b
prettier type name printing for generic types featuring static parameters
2014-12-31 03:50:50 +02:00
Araq
c0cc62c6b1
tuple field names are ignored
2014-12-23 17:54:22 +01:00
Araq
0e439ce367
implements #78
2014-10-26 22:48:54 +01:00
Araq
7a48942719
nicer error messages (untested)
2014-10-26 19:54:43 +01:00