Commit Graph

3518 Commits

Author SHA1 Message Date
transfuturist
939c0a6bb8 NimNode needs an items iterator to be used nicely in for statements 2015-05-16 10:52:44 -07:00
Dominik Picheta
61c7cc2ff7 Merge pull request #2701 from borisvassilev/fill
Fill array with same values (was issue #2462)
2015-05-16 18:52:30 +01:00
onionhammer
30aed77d04 Fixed indentation (2 spaces) part 2 2015-05-16 12:37:07 -05:00
onionhammer
11457bc63b Fixed indentation (2 spaces) 2015-05-16 12:35:55 -05:00
onionhammer
f1343e52e0 Added comment noting improved performance of non-pretty string conversion 2015-05-16 12:33:00 -05:00
onionhammer
edce0ca2ed Fixed typo 2015-05-16 11:38:43 -05:00
Erik O'Leary
abc8e88c8a Merge branch 'devel' of https://github.com/Araq/Nimrod into devel 2015-05-16 11:34:09 -05:00
apense
7b26df50d7 Small sequence fix for algorithm.nim
Since #853 was fixed, this should work fine. The `result = @[]` was swapped to the same syntax, too.
2015-05-15 23:52:55 -04:00
Erik O'Leary
911c5d45ec Improved performance of "$" on jsonnode 2015-05-15 22:12:31 -05:00
pdw
cb6f867495 Fixed 'milliseconds' spelling in code and docs 2015-05-15 20:15:12 -05:00
apense
e7bc828ef3 Update algorithm.nim 2015-05-14 18:32:26 -04:00
apense
78b7625417 Corrected sortedByIt example
`people` needs `var`
2015-05-14 14:16:58 -04: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
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
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
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
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
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
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
Varriount
d882718882 Merge pull request #2665 from koalazen/fix_math_is_power_of_two
fixes isPowerOfTwo returning true on the smallest integer
2015-05-07 12:54:37 -04:00
Reimer Behrends
2a08bbdf31 Fix GC scanning of registers on x86_64 architectures.
It is possible for jmp_buf to not be word-aligned or addresses
in the register dump to not be word-aligned. This can result in
either addresses in registers being missed or even addresses on
the stack past the register area not being scanned properly.
2015-05-07 14:35:39 +02:00
Koala Zen
cf68d926d8 fixes isPowerOfTwo returning true on the smallest integer 2015-05-06 12:37:15 -07:00
Koala Zen
d620f566b2 Fix comment in re 2015-05-06 09:09:36 -07:00
Araq
a0df21edc0 development version is 0.11.3 2015-05-06 09:20:50 +02:00
Jonathan
8e4af5ace0 Add contains proc for tables to allow usage of in 2015-05-05 23:26:58 +01:00
def
c5db4fc3a2 Move the noreturn pragma to sysFatal
Now you can choose to implement sysFatal with --os:standalone so that it
returns.
2015-05-05 20:26:54 +02:00
Araq
288400761c version 0.11.2 2015-05-04 16:47:41 +02:00
Araq
0775402f55 fixes #2651 2015-05-04 16:47:40 +02:00
apense
80b5e612c0 Update streams.nim 2015-05-04 08:49:41 -04:00
Andreas Rumpf
ca67687e3b Merge pull request #2648 from def-/zipfiles
Make zipfiles module work again
2015-05-03 17:31:26 +02:00
def
ffad2be237 Make zipfiles module work again
Also adds an example usage to the module
2015-05-03 14:22:49 +02:00
def
0e8e574961 Use builtin overflow functions of Clang and GCC (WIP, RFC)
This only works with recent Clang and GCC 5.0.

Currently it doesn't work because __has_builtin can't be defined.

This is totally ugly. But we can't reliably detect whether we can use
the builtins from Nim, especially with cross-compiling where the user
may be using an older compiler version. Switching this on/off manually
with a define seems weird as well, this should work automatically.
2015-05-03 03:49:11 +02:00
Araq
c6605d3d50 development version is 0.11.1 2015-05-03 01:08:50 +02:00
Araq
7d3a6b42d9 fixes #2625 2015-05-03 01:08:48 +02:00
Stephen Sugden
7fb5932b9b Resolve base type fields in [](TAny, string) 2015-05-03 00:16:22 +02:00
Chris Heller
2aa61034ba Add deprecated versions of procs in windows.nim that had DWORD parameters converted to SIZE_T 2015-05-01 23:54:28 -07:00
msmith491
50f54bf60b Add arbitrary char support to the strutils proc. Issue #2626 2015-04-30 21:40:26 -07:00