Commit Graph

2241 Commits

Author SHA1 Message Date
Adam Strzelecki
179d82c55b Fix #2662: Don't convert subtype typedesc params
There is no point to issue implicit HiddenStdConv encountering subtype of
typedesc[Base] parameter on overload resolution, since this will anyway never
reach codegen. This change effectively fixes compiler bug for:

  iterator it(T: typedesc[Base]) = ...
  for s in it(SubclassOfBase): ...

Where HiddenStdConv triggered implicit instantiation of variable of type
typedesc[Base] in for transform, that eventually fails at getUniqueType, that
refuses to work for typedesc.
2015-05-13 19:10:54 +02:00
Andreas Rumpf
9422dbf337 Merge pull request #2657 from def-/noreturn
Pass noReturn pragma to C code.
2015-05-08 02:08:32 +02:00
def
4a2a0894ae Implicitly assume compilers to know naked and noreturn attributes 2015-05-07 22:31:45 +02:00
def
a7b39e3ebf Improve code style a bit 2015-05-07 20:35:16 +02:00
def
81cff0908e Fix the lib path used with --app:staticlib
For example if gProjectName is "src/false.nim" the old static lib name
was "libsrc/false.nim.a", now it is "libfalse.a".
2015-05-07 02:29:31 +02:00
def
78c26cbf18 Distinguish only between __declspec and __attribute__ 2015-05-05 20:35:43 +02:00
def
a9fe618756 Pass noReturn pragma to C code.
With GCC and Clang this generates __attribute__((noreturn)) in the
function declaration. (both tested) With VCC __declspec(noreturn) is
used.
2015-05-05 00:02:09 +02:00
Araq
3bef848a2c added missing stuff for the release 2015-05-04 19:40:11 +02:00
Araq
4a51dbe670 version 0.11.2 2015-05-04 16:47:42 +02:00
Araq
e23857a98b fixes #2629, fixes #2641, fixes #2632, fixes #2630 2015-05-03 01:08:52 +02:00
Araq
6cb3635ca0 fixes 'echo nil' codegen bug 2015-05-03 01:08:51 +02:00
Araq
0f35a997dd minor bugfixes to the new 'len(nil)==0' feature 2015-05-03 01:08:50 +02:00
Araq
16a51ffc97 compiler\ccgexprs.nim
fixes 'nil' literal echoing
2015-05-03 01:08:49 +02:00
Araq
3905cfeace more cleanups for 0.11.0 2015-04-30 14:32:01 +02:00
Araq
a4f8a89c85 preparations for version 0.11.0 2015-04-30 02:01:38 +02:00
Araq
d40098ad82 columns are 1 based for nimsuggest 2015-04-30 00:01:07 +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
3fa2e79814 sempass2: bugfixes 2015-04-28 15:01:05 +02:00
Araq
c6398d408d fixes #1888 2015-04-27 23:11:59 +02:00
Araq
b34bd3b163 fixes #2577 2015-04-27 23:11:58 +02:00
Araq
85bcc14f7f fixes #2607 2015-04-26 22:44:06 +02:00
Araq
4550a2fb5c fixes #2602 2015-04-26 22:44:06 +02:00
Araq
22b5f4df54 fixes #2603 2015-04-26 22:44:05 +02:00
Andreas Rumpf
1cb14f888a Merge pull request #2605 from jyapayne/devel
Fixed the paths of nimfix and nimsuggest to be relative.
2015-04-26 11:08:47 +02:00
Araq
e40b667891 fixes regression: overloading by 'var' 2015-04-25 23:17:00 +02:00
Araq
d3fc6e1f28 marshalling can be done at compile-time 2015-04-25 23:17:00 +02:00
Araq
2c91e999e2 fixes #2600 2015-04-25 23:16:58 +02:00
Araq
ecc0090939 fixes #2551; fixes #2212; breaks bootstrapping in debug mode; bootstrap with -d:release 2015-04-25 23:16:57 +02:00
Araq
4d20aafb5e fixes #2372 2015-04-25 23:16:57 +02:00
Joey Payne
db84afe016 Fixed the paths of nimfix and nimsuggest to be relative. 2015-04-25 12:07:35 -06:00
Andreas Rumpf
61d0a649aa Merge pull request #2598 from jyapayne/devel
Added explicit imports for compiler modules to fix compiling nimsuggest on it's own.
2015-04-24 20:25:57 +02:00
Joey Payne
01e9c7d450 Removed explicit imports in compiler/nimfix/*.nim and added cfg path modification 2015-04-24 11:25:00 -06:00
Joey Payne
6c6a52ff3a Added explicit imports for compiler modules to fix compiling nimsuggest.
See https://github.com/nim-lang/nimsuggest/issues/1
2015-04-24 10:06:56 -06:00
Araq
6ca38472a1 cleanups for underscores in tuple unpacking 2015-04-24 13:08:42 +02:00
Araq
a5f321ea8f finishes #2566 2015-04-24 12:44:14 +02:00
Araq
9e4e7ca535 fixes #2533 2015-04-24 12:36:41 +02:00
Araq
c1730e1ead fixes #2335 2015-04-24 12:35:13 +02:00
Araq
3317faf80d fixes #2524 2015-04-24 12:35:12 +02:00
Andreas Rumpf
6a016743aa Merge pull request #2566 from nanoant/parser-diagnostic-location
Parser: Fix location (line, col) for diagnostics
2015-04-24 12:33:11 +02:00
Andreas Rumpf
3e000f4e36 Merge pull request #2437 from Araq/underscore-tuple-unpack
Implements #2154.
2015-04-24 12:32:57 +02:00
Araq
0c947f31ba system.locals is now a plugin for education 2015-04-24 02:08:06 +02:00
Araq
c8bebe92e2 fixes #2569 2015-04-23 23:49:10 +02:00
Araq
a7a2fa63aa fixes #2589 2015-04-23 02:08:30 +02:00
Dominik Picheta
f0f0062a5d Add sfGenSym for (_). 2015-04-23 00:29:16 +01:00
Dominik Picheta
9e69e4e078 Merge branch 'devel' into underscore-tuple-unpack
Conflicts:
	compiler/semstmts.nim
2015-04-23 00:26:17 +01:00
Araq
8dadeebd08 fix #2585 properly 2015-04-22 20:33:06 +02:00
Araq
bcd8053b23 fixes #2585 2015-04-22 20:25:11 +02:00
Araq
13c5f792dc fixes #2447 2015-04-22 16:11:51 +02:00
Araq
daad8100a9 fixed nil.add for JS 2015-04-22 15:21:20 +02:00