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
Araq
4d8cd34c9e
fixes #794
2015-03-07 15:43:35 +01:00
Max Zerzouri
7527da7043
.n.isNil checks for tyTuple PTypes.
2015-03-07 17:56:29 +13:00
Hans Raaf
b85da579b3
Fixing import path support inconsitency.
2015-03-07 00:27:42 +01:00
Simon Hafner
20283b81fa
update WarningsToStr
2015-03-06 10:46:33 -06: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
Simon Hafner
70eaf92ff0
Merge branch 'devel' into warning-for-result
2015-03-05 14:44:54 -06:00
Araq
cac259cdfb
fixes #2229
2015-03-05 20:39:25 +01:00
Araq
3adcad1b5d
fixes #2250
2015-03-05 11:17:14 +01:00
Andreas Rumpf
70d0894ace
Merge pull request #2249 from flaviut/fix-nimcheck
...
Fix #2247
2015-03-05 11:14:40 +01:00
Flaviu Tamas
08680cfebd
Fix #2247
...
Thanks @Araq for the suggestion
2015-03-04 21:21:10 -05:00
Araq
d61f326f38
prevent name mangling for C++ DLLs
2015-03-05 01:34:09 +01:00
Araq
83cab19c62
fixes #2252
2015-03-04 21:19:38 +01:00
Araq
8ade324b8c
cleaned up whitespace
2015-03-04 18:17:43 +01:00
Hans Raaf
b902ea887b
Replaced deprecated repeatStr() with repeat().
2015-03-04 03:44:09 +01:00
Hans Raaf
58186f6c1d
Replaced deprecated repeatChar() with repeat() or spaces().
2015-03-04 03:30:43 +01:00
Araq
b870744d5d
makes Aporia build for 64bit archs
2015-03-03 13:53:31 +01:00
Araq
76e44dd034
test tsets2.nim compiles again
2015-03-01 23:01:02 +01:00
Araq
24ae0c387f
some love for the testsuite; fixed regressions
2015-03-01 21:41:21 +01:00
Araq
566ee874cd
minor cleanups
2015-03-01 13:52:00 +01:00
def
cfab1394d2
Make reading from stdin work again.
...
Bootstrapping tested on Linux from csources.
2015-03-01 00:16:46 +01:00
Araq
2df10fc4a6
bootstrapping works again on Windows
2015-03-01 00:02:10 +01:00
Araq
2808b7f9a5
fixes #2233
2015-02-28 23:53:52 +01:00
Andreas Rumpf
eff6a281c5
Merge pull request #2202 from def-/compile-stdin
...
Make compiler read files from stdin
2015-02-28 23:49:25 +01:00
def
c37e8035ea
When compiling from stdin write binary to stdinfile
2015-02-28 23:35:35 +01:00
def
6894ac7c0a
Rename stdin fake module name to stdinFile
2015-02-28 22:59:59 +01:00
Araq
2ebeb0bd21
fixes #2169
2015-02-28 20:13:21 +01:00
Araq
3bfcfeb0cf
don't use stdout for nimsuggest server mode
2015-02-27 16:44:55 +01:00
Araq
05233de66c
reprocess pragmas after macro annotation for SqueakNim
2015-02-27 16:44:55 +01:00
Araq
169974cfe6
improved --debugger switch; updated release plan
2015-02-27 16:44:54 +01:00
Araq
d4a8bde617
added a comment
2015-02-26 02:05:24 +01:00
Araq
9053799bf5
fixes #2216
2015-02-26 02:05:23 +01:00
Araq
fce2ff161e
tsigtypeop.nim works again
2015-02-25 21:36:43 +01:00
Araq
f2cdbc92eb
fixes #2215
2015-02-25 20:32:32 +01:00
Araq
335c19c869
tester reports ignored tests and supports 'nimout'; fixes #2211
2015-02-25 12:59:32 +01:00
Andreas Rumpf
819a2a03ac
Merge pull request #2184 from oderwat/feat-caseofwhen
...
Allow empty sets in case/of branches.
2015-02-24 19:35:52 +01:00
Araq
f4a0400de2
fixes #2199 , fixes #2197
2015-02-24 19:19:08 +01:00
Dominik Picheta
4ab0cf20fe
Fixes NimSuggest's socket mode.
2015-02-24 18:05:13 +00:00
Hans Raaf
79384ea729
Allow empty sets in case/of branches.
...
Added support for conditional compilation using 'when' with empty sets and arrays in
'case of' branches.
Please enter the commit message for your changes. Lines starting
2015-02-24 14:54:27 +01:00
Araq
7324ed7f1f
types API: now works for proc():void
2015-02-24 01:57:49 +01:00
Araq
752052e903
implements a type API for macros
2015-02-24 00:13:28 +01:00
Araq
9080d3a9a9
small cleanup of ast.nim
2015-02-24 00:13:27 +01:00
Araq
1e6aef62ba
macros.PNimrodNode is now NimNode
2015-02-24 00:13:27 +01:00
def
dca5508d13
Make compiler read files from stdin
...
Special "-" file as stdin.
2015-02-22 23:23:22 +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
77406dd59c
fixes #2134
2015-02-20 20:01:25 +01:00
Araq
aef7be2e79
fixes #1902
2015-02-20 20:01:24 +01:00
Araq
540f66cb09
fixes #2167
2015-02-20 20:01:23 +01:00