Commit Graph

11210 Commits

Author SHA1 Message Date
Markus Engelbrecht
ddbcbab3e7 use new syntax for negative slicing 2015-05-15 18:39:56 +02:00
apense
e7bc828ef3 Update algorithm.nim 2015-05-14 18:32:26 -04:00
transfuturist
8fc53f2952 Add path directive to allow inclusion of config file's path itself 2015-05-14 12:52:43 -07:00
apense
78b7625417 Corrected sortedByIt example
`people` needs `var`
2015-05-14 14:16:58 -04:00
Simon Hafner
c0003cc73b added documentation about sexp 2015-05-14 22:57:29 +05:00
Andreas Rumpf
c30d7c3208 Merge pull request #2680 from reactormonk/epc
Implements EPC for nim-mode in nimsuggest
2015-05-14 02:16:12 +02:00
Andreas Rumpf
9abbe3ba69 Merge pull request #2564 from reactormonk/jpoirier-realtimeGCTest
Jpoirier realtime gc test
2015-05-14 02:06:11 +02:00
Simon Hafner
2bc1db7a30 run the C test too 2015-05-13 13:13:30 -05:00
Andreas Rumpf
f293e2c152 Merge pull request #2708 from nanoant/patch/dont-convert-subtype-typedesc-params
Fix #2662: Don't convert subtype typedesc params
2015-05-13 19:24:27 +02:00
Adam Strzelecki
a8fbaf917b Tests for static class proc, methods & iterators
This currently covers #2662 & #2710 bugs.
2015-05-13 19:10:54 +02:00
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
Simon Hafner
9c4a74637d Merge branch 'devel' into jpoirier-realtimeGCTest 2015-05-13 12:06:05 -05:00
reactormonk
0bf78e2629 Merge pull request #2709 from jochenvdv/osproc-doc
Fix osproc documentation
2015-05-13 11:45:27 -05:00
Jochen Van de Velde
86c9fffc41 Fix osproc documentation 2015-05-13 18:19:51 +02:00
Andreas Rumpf
2dee0324f3 Merge pull request #2705 from borisvassilev/gcddocs
Document explicitly the behaviour of math.gcd with float arguments
2015-05-13 16:34:36 +02:00
Andreas Rumpf
ce2756dd89 Merge pull request #2707 from rbehrends/fix-getfileinfo-links
Fix behavior of os.getFileInfo() for symbolic links.
2015-05-13 16:33:56 +02:00
Simon Hafner
5e97780a94 changed from parseEnum to direct copy
Let's hope this doesn't break anything
2015-05-13 18:34:29 +05:00
Simon Hafner
c56a005238 nextFreePort -> connectToNextFreePort 2015-05-13 18:19:39 +05:00
Reimer Behrends
28dd0407bb Fix behavior of os.getFileInfo() for symbolic links.
The calls to lstat() and stat() were switched. As a result,
links weren't followed for followLink == true and links were
followed for followLink == false.
2015-05-13 12:26:34 +02:00
Araq
75ccdebd1e get rid of deprecated effects 2015-05-13 12:19:08 +02:00
Araq
bd4d5db18e terminal: doc improvments 2015-05-13 12:17:11 +02:00
Boris Vassilev
9723e30647 Document explicitly the behaviour of math.gcd with float arguments 2015-05-13 13:00:20 +03:00
Boris Vassilev
3a3a7d012f Fill array with same values (was issue #2462) 2015-05-12 15:52:38 +03:00
Araq
f9be37e7cb prepare for unidecode Nimble package 2015-05-12 14:45:50 +02:00
krolik
373717968e new now able to make distinction between ref and non-ref types, so we don't get 'ref ref' type when calling new on ref type 2015-05-12 12:45:34 +03:00
Frank Fischer
749e808e1e logging: make fmtStr public to be used in user defined loggers 2015-05-11 23:29:51 +02:00
Flaviu Tamas
a75cfc9887 Reweave readme
Also fix some syntax errors in the RST
2015-05-11 15:45:57 -04:00
def
f8af8df91c Add -ldl with clang cpp compilation
This fixes compilation with --cc:clang and cpp.
2015-05-10 22:20:03 +02:00
Flaviu Tamas
0056ebdd15 Merge pull request #14 from BlaXpirit/inline-options
Inline options
2015-05-08 13:56:25 -04:00
Simon Hafner
13e8547fa7 hardcoded order 2015-05-08 19:47:34 +05:00
Simon Hafner
c06672451a removed unnecessary deps 2015-05-08 19:47:17 +05:00
def
fef21e9003 Use -d:builtinOverflow for builtin overflow checks
of recent Clang and GCC >= 5.0.

Maybe it's better that it's optional after all. GCC's code with builtin
overflow checks seems to be a bit slower actually, while Clang's is 3
times faster.
2015-05-08 04:00:24 +02:00
Simon Hafner
f5cca89610 merged devel into epc 2015-05-08 06:40:34 +05:00
Simon Hafner
2474c1bb11 import sigmatch, not suggest in nimsuggest 2015-05-08 06:32:58 +05:00
Andreas Rumpf
0b184f2584 Merge pull request #2608 from chrisheller/devel
Add procs for VirtualAllocEx and VirtualFreeEx in windows.nim
2015-05-08 02:20:14 +02:00
Andreas Rumpf
31d472d83d Merge pull request #2660 from MrJohz/contains-tables
Add contains proc for tables to allow usage of `in`
2015-05-08 02:19:45 +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
Michael Werner
c384f05e49 fixed typo in threadpool.nim 2015-05-08 03:31:58 +05:00
reactormonk
073547bbc4 Merge pull request #2675 from nanoant/patch/fixup-build-csources-submodule-pull
Fixup: csources is empty after clone
2015-05-08 02:53:19 +05:00
reactormonk
45b6082c12 Merge pull request #2674 from Xaseron/patch-1
fixed typo in threadpool.nim
2015-05-08 02:50:23 +05:00
Adam Strzelecki
7e479993a4 Fixup: csources is empty after clone
We actually need to check for existence of csources/.git and then do git
submodule update --init, which pulls the data for submodule.
2015-05-07 23:07:15 +02:00
Michael Werner
47f6d38b67 fixed typo in threadpool.nim 2015-05-07 22:39:15 +02:00
def
4a2a0894ae Implicitly assume compilers to know naked and noreturn attributes 2015-05-07 22:31:45 +02:00
Andreas Rumpf
a490e13342 Merge pull request #2649 from nanoant/patch/csources-as-submodule
Patch/csources as submodule
2015-05-07 22:17:05 +02:00
Andreas Rumpf
22c9b89392 Merge pull request #2666 from def-/fix-staticlib
Fix the lib path used with --app:staticlib
2015-05-07 22:13:08 +02:00
def
a7b39e3ebf Improve code style a bit 2015-05-07 20:35:16 +02:00
Andreas Rumpf
9ef09fc6f5 Merge pull request #2622 from def-/times-year
Year shouldn't be arbitrarily limited to -10_000 .. 10_000
2015-05-07 20:22:26 +02:00
Varriount
ec0e60830a Merge pull request #2627 from msmith491/devel
Add arbitrary char support to the strutils  proc.  Issue #2626
2015-05-07 13:03:19 -04:00
Varriount
d3f69e14f7 Merge pull request #2596 from Nycto/devel
Fix floats in tuples in HashSets
2015-05-07 13:02:42 -04:00
Varriount
ace11f08aa Merge pull request #2537 from jsanjuas/devel
Generalize mean to other types
2015-05-07 12:59:01 -04:00