Commit Graph

2064 Commits

Author SHA1 Message Date
Araq
d4bca58b7d fixes #1809; implements overloading based on 'var T' 2015-03-14 22:21:43 +01:00
Araq
2f4472963f disjoint checker works with the new countup iterators 2015-03-14 01:26:32 +01:00
def
7daf410f46 Improve error message for failed conversion in VM
- Fixes #2045

- Old one:
  Error: conversion from unknown type to unknown type is invalid
- New one:
  Error: conversion from -1 to [0..255] is invalid
2015-03-12 23:49:49 +01:00
Andreas Rumpf
e025b97c1a Merge pull request #2322 from def-/js-typeinfo
Typeinfo for uints in javascript
2015-03-12 16:17:58 +01:00
Araq
4077f7d49c fixes #1791 2015-03-12 16:04:44 +01:00
def
b72528d635 Typeinfo for uints in javascript 2015-03-12 13:16:47 +01:00
Araq
aa175e9e57 fixes #1868 2015-03-12 12:17:08 +01:00
Araq
0a0126d49a fixes #794 properly 2015-03-12 11:40:14 +01:00
Araq
f88678bed4 fixes #2298 2015-03-12 11:08:03 +01:00
Andreas Rumpf
9a2b7ef641 Merge pull request #2319 from reactormonk/warning-for-result
do not warn about gensym'd results
2015-03-12 01:59:45 +01:00
Araq
f514be0772 fixes #2286 2015-03-12 01:45:15 +01:00
Araq
5a21892da0 fixes #2287 2015-03-12 01:45:14 +01:00
Araq
970e98718d code cleanup 2015-03-12 01:45:13 +01:00
Simon Hafner
8993c7672d do not warn about gensym'd results 2015-03-11 19:21:27 -05:00
Araq
6dbd41e875 fixes #2316 2015-03-11 20:11:08 +01:00
Araq
1bbd13f729 bugfix: c++ pattern #@ could index out of bounds 2015-03-10 21:00:49 +01:00
Araq
0032912d10 fixed the tester; more tests green 2015-03-10 12:32:48 +01:00
Araq
1efb5174f2 fixes #2220; #2219; breaks #2022; for #2022 callsite needs to be used 2015-03-10 12:32:46 +01:00
Andreas Rumpf
38b9093581 Merge pull request #2274 from reactormonk/warning-for-result
Warning for result
2015-03-08 14:49:49 +01:00
Araq
c40aac8e20 GC: get rid of pathological behaviour for stack marking 2015-03-08 13:08:19 +01:00
Simon Hafner
4d8e0d54c3 fixed array size 2015-03-07 16:06:46 -06: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
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