Commit Graph

2073 Commits

Author SHA1 Message Date
Andreas Rumpf
1838ea2db4 Merge pull request #2342 from philip-wernersbach/more-improved-objc
Fix linking errors with basic Objective-C FFI.
2015-03-16 21:30:08 +01:00
Philip Wernersbach
747653911c Add compiler-specific configuration options for all compilers. 2015-03-15 19:07:42 -04:00
Dominik Picheta
1e9ab3bb0a Fixes #2323. Fixes #2148. 2015-03-15 22:06:26 +00:00
Andreas Rumpf
faad6ed67f Merge pull request #2333 from def-/recursive-type
Fix infinite recursion in semtypes with recursive types
2015-03-15 00:46:33 +01:00
Andreas Rumpf
b7cba7fa29 Merge pull request #2327 from def-/installation
Installation
2015-03-15 00:41:53 +01:00
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
d77c883911 globalError instead of localError when failing infinite recursion
globalError throws an exception, so this works for `nim check` as well.
2015-03-13 17:17:42 +01:00
def
06b986dbd5 Rename compiler/nim.ini back to compiler/installer.ini
- Niminst has a new -m/--main option to set the main file, by default
  ini-file with .nim extension (old behaviour)
- Koch uses this to pass --main:compiler/nim.nim
- Fix includes/links of website.ini
2015-03-13 17:03:57 +01:00
def
c19d6cb620 Fix infinite recursion in semtypes with recursive types
Fixes #2213
2015-03-13 02:17:46 +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
7707c4c369 Move installer.ini back to nim.ini to fix ./koch csource 2015-03-12 13:50:07 +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