Andreas Rumpf
ab9e44dc96
better fix for #4497
2016-07-19 14:13:23 +02:00
Dmitry Polienko
5f773bf478
Fix passing environment in startProcess (win)
...
Previous implementation used newWideCString, which doesn't
handle strings with \0 characters.
2016-07-18 23:28:40 -07:00
Andreas Rumpf
358f582939
Merge pull request #4463 from flyx/tables-equals-no-KeyError
...
`==` in tables should not raise KeyError
2016-07-19 00:16:58 +02:00
Andreas Rumpf
71cee2b648
Merge pull request #4498 from mbaulch/fix4388
...
Random module: fix links, improve header.
2016-07-18 17:47:23 +02:00
Andreas Rumpf
3193a99b13
fixes #4497
2016-07-18 13:52:27 +02:00
Matthew Baulch
50d6c0ae85
Random module: fix links, improve header.
2016-07-18 21:42:47 +10:00
Hans Raaf
c00bb2ca82
findExe() now by default follows symlinks.
2016-07-17 01:07:09 +02:00
Andreas Rumpf
2ac21261b4
Merge pull request #4394 from yglukhov/macro-routines2
...
Added addPragma routine
2016-07-16 14:35:17 +02:00
Andreas Rumpf
b7c1be03c8
added system.newSeqOfCap for improved efficiency
2016-07-15 17:04:14 +02:00
Andreas Rumpf
0834cd63d9
prepare Nim codebase for upcoming parser changes
2016-07-15 12:56:03 +02:00
Araq
928ac1e994
Merge branch 'devel' of github.com:nim-lang/Nim into devel
2016-07-14 01:11:47 +02:00
Hans Raaf
3cea6e8a96
Added iterator for utf8 strings
2016-07-13 00:25:31 +02:00
Axel Pahl
6de1333a26
use table literal syntax
2016-07-12 10:45:54 +02:00
Axel Pahl
8d4614b5ab
explain difference between Table and TableRef in tables.nim
2016-07-12 09:43:31 +02:00
Yuriy Glukhov
59d17cb341
Fixed crash with leakDetector and threads enabled.
2016-07-11 16:23:15 +03:00
Matthew Baulch
90a5edfa6d
Fix #4422 : Reset queue element on pop. Prevent NimVM confusion. Help GC.
2016-07-11 15:10:54 +10:00
Kier Davis
449960bf7e
Add a fix for clear() on non-ref types by adding a missing 'var' annotation to the type signature
...
However, this fix won't take effect until a compiler bug (#4448 ) is fixed. Until then, the codebase functions identically to
how it did before this commit (calls to clear() fail to compile for Table/OrderedTable/CountTable as the argument is
immutable).
2016-07-09 17:34:01 +01:00
Federico Ceratto
a505fa631d
Fix "string literal as key expected" error
...
Fix "Error: string literal as key expected expected"
2016-07-09 17:25:57 +01:00
Kier Davis
edb5a1a5c6
Fix clear() on CountTable
...
The record tuples used in CountData.data don't contain an 'hcode' member,
unlike Table and OrderedTable, causing the existing clearImpl() implementation
to break when attempting to assign to t.data[i].hcode.
2016-07-09 17:21:18 +01:00
Andreas Rumpf
5e82ffc8d5
Nimscript: added support for 'patchFile'
2016-07-09 14:26:00 +02:00
Araq
c48102254a
merged
2016-07-08 23:20:31 +02:00
Andreas Rumpf
e2267ef5c9
Nimscript supports hint() and warning() procs; refs #3688
2016-07-08 22:24:28 +02:00
Andreas Rumpf
d83eb70643
async: use -d:nimDumpAsync to see what the async macro generates
2016-07-08 18:05:36 +02:00
Andreas Rumpf
7f752db0e3
improve error message if C and Nim disagree on pointer size
2016-07-08 15:55:42 +02:00
Andreas Rumpf
019ee2260c
fixes #4399
2016-07-08 11:05:48 +02:00
Felix Krause
9f8cdf2560
Use getOrDefault for tables.==
2016-07-08 10:41:37 +02:00
Andreas Rumpf
b47d9b7b91
fixes #4371
2016-07-08 10:34:12 +02:00
Felix Krause
4455e5d4b6
== in tables should not raise KeyError
...
* With previous code, the compiler deduced that equalsImpl may raise
a KeyError. While this could only actually happen in a nasty
multi-threaded environment, I fixed the code so that it will never happen.
2016-07-07 18:13:12 +02:00
Andreas Rumpf
caa7f42e8e
fixes #4340
2016-07-07 01:35:42 +02:00
Andreas Rumpf
28940ce457
ospaths can always be imported; fixes #4249
2016-07-06 20:16:55 +02:00
Andreas Rumpf
17d97462cf
Merge branch 'devel' of github.com:nim-lang/Nim into devel
2016-07-06 16:48:14 +02:00
Andreas Rumpf
fb1c2fec37
Merge pull request #4455 from mbaulch/fix_excl_examples
...
Update sets examples so they work again.
2016-07-06 13:27:05 +02:00
Matthew Baulch
a6c66139fa
Update sets examples so they work again.
2016-07-06 20:30:57 +10:00
Andreas Rumpf
6d9177c6f1
added strutils.splitWhitespace
2016-07-06 11:59:20 +02:00
Andreas Rumpf
834c2abfd1
Merge pull request #4447 from cheatfate/async2
...
async core v3
2016-07-05 21:40:56 +02:00
cheatfate
ffb975f474
Lower numbers for unchecked array
2016-07-05 20:01:21 +03:00
cheatfate
2cbdf6088a
Misplaced &
2016-07-05 20:00:26 +03:00
cheatfate
80ae938ddf
Simplify SharedArray.
2016-07-05 19:56:18 +03:00
Rostyslav Dzinko
e94c0ea4c8
Fixed reprEnum function on 32-bit systems
2016-07-05 19:05:31 +03:00
Andreas Rumpf
689d3f75cf
Merge pull request #4445 from Jeff-Ciesielski/jeffc/define_assignments
...
Add the ability to pass a value with the -d flag
2016-07-05 15:45:30 +02:00
cheatfate
7724336d73
Patch one more path problem
2016-07-05 14:35:55 +03:00
cheatfate
025c6c0983
Resolved path problems
2016-07-05 13:48:03 +03:00
cheatfate
835ff4a2f8
ioselectors separated and refactored version.
...
adopted asyncdispatch version
2016-07-05 13:18:26 +03:00
Jeff Ciesielski
4f4aafda6c
Plumb {.intdefine.} and {.strdefine.} pragmas.
...
Shorthand so that users won't need to use the .magic pragma
2016-07-04 22:52:24 -04:00
Jeff Ciesielski
94d1aa5109
Add the ability to pass a value with the -d flag
...
This allows the end user to use the {.magic: "IntDefine"/"StrDefine"}
pragmas to pass values into code at compile time. This has a nice side
effect of also allowing/requiring a default value to be assigned in the
code (see osalloc.nim/StandaloneHeapSize for an example)
2016-07-04 18:11:25 -04:00
Andreas Rumpf
5f9da6b2ae
Merge pull request #4420 from yglukhov/closure-scope
...
Added closureScope template
2016-07-04 10:41:48 +02:00
Chris Heller
f6fda5e704
Add doc to parsexml.nim for template assertions
...
Added additional documentation for parsexml.nim to describe the assertions that are used to check the parser's current status when accessing parser data.
2016-07-02 17:19:03 -06:00
Andreas Rumpf
b56e5e159a
Merge pull request #4361 from jyapayne/fix_split
...
Fix #4305 : Make split proc for set[char] consistent
2016-07-02 17:55:57 +02:00
Andreas Rumpf
97b59506d6
Merge pull request #4389 from jyapayne/add_unicode_procs
...
Add unicode procs
2016-07-02 17:49:43 +02:00
Vladislav Vorobiev
e4b16ac608
Remove line breaks in OSError messages (Windows)
...
Before:
```
Error: unhandled exception: Не удается найти указанный файл.
[OSError]
```
After:
```
Error: unhandled exception: Не удается найти указанный файл. [OSError]
```
2016-07-01 21:50:26 +03:00