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
e9eab32e54
new language feature: explicit 'import system' statements are allowed
2016-07-07 01:02:12 +02:00
Andreas Rumpf
28940ce457
ospaths can always be imported; fixes #4249
2016-07-06 20:16:55 +02:00
Andreas Rumpf
d96bf94fda
Merge pull request #4458 from cheatfate/fixtest1
...
Resolve problems with tioselectors test on OSX.
2016-07-06 17:43:04 +02:00
cheatfate
32e3e01dac
Resolve problems with test on macosx.
2016-07-06 18:02:59 +03:00
Andreas Rumpf
389f500226
added test case for #537
2016-07-06 16:52:41 +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
e73fd64f38
fixes #537
2016-07-06 16:48:00 +02:00
Andreas Rumpf
46237a273d
Merge pull request #4456 from yglukhov/vm-ct-args
...
Fixed vm codegen for a call with compile-time args. Fixes #4412 .
2016-07-06 15:14:44 +02:00
Yuriy Glukhov
09783c3fd0
Fixed vm codegen for a call with compile-time args. Fixes #4412 .
2016-07-06 14:39:57 +03: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
b681e91745
Merge pull request #4449 from mbaulch/fix4003
...
Fix #4003 : Regard nil nodes as having equal type constraints.
2016-07-06 12:12:42 +02:00
Andreas Rumpf
f16163d82b
Merge pull request #4452 from yglukhov/js-enum-repr-offset
...
JS: Repr now works for enums starting with non-zero.
2016-07-06 12:12:10 +02:00
Andreas Rumpf
6d9177c6f1
added strutils.splitWhitespace
2016-07-06 11:59:20 +02:00
Yuriy Glukhov
a76b74ed74
Repr now works in js for enums starting with non-zero.
2016-07-05 22:43:59 +03:00
Andreas Rumpf
834c2abfd1
Merge pull request #4447 from cheatfate/async2
...
async core v3
2016-07-05 21:40:56 +02:00
Andreas Rumpf
9a54834bf4
Merge pull request #4450 from SSPkrolik/reprEnum-fix
...
Fixed reprEnum() function on 32-bit systems
2016-07-05 19:08:27 +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
b439e3b4d9
Merge pull request #4444 from mbaulch/devel
...
Fix #4275 : Argument count not checked in importcpp
2016-07-05 17:42:36 +02: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
Matthew Baulch
a2301f64cd
Return nil from genOtherArg after error.
2016-07-05 23:16:57 +10:00
Jeff Ciesielski
11730e6c3b
Update documentation and news
2016-07-05 09:06:40 -04:00
Matthew Baulch
109c9d551f
Regard nil nodes as having equal type constraints.
2016-07-05 22:56:22 +10:00
Jeff Ciesielski
16f2808439
Fix typo. Remove unnecessary proc
2016-07-05 08:26:12 -04: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
Matthew Baulch
9a7b6af5fa
Report wrong arg count when too many params and no varargs.
2016-07-05 06:14:36 +10:00
Andreas Rumpf
5f9da6b2ae
Merge pull request #4420 from yglukhov/closure-scope
...
Added closureScope template
2016-07-04 10:41:48 +02:00
Andreas Rumpf
ec63f8c3e4
Merge pull request #4438 from chrisheller/parsexml-doc-update
...
Add doc to parsexml.nim for template assertions
2016-07-04 10:29:00 +02:00
Andreas Rumpf
a0929bb8be
Merge pull request #4410 from DenisKolodin/relinstall
...
Use relative paths in install script template
2016-07-04 10:28:13 +02:00
Denis Kolodin
b8ab419067
Use relative paths in install script template
2016-07-03 12:05:51 +03: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
Araq
90f6052955
yay Unix file access rights
2016-07-02 19:08:54 +02: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
Andreas Rumpf
a9d86d16ab
Merge pull request #4436 from miere43/patch-2
...
Remove line breaks in OSError messages (Windows)
2016-07-02 17:25:12 +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
Joey Payne
ff85ef456a
Add new unicode procs to the news
2016-07-01 07:37:49 -06:00
Joey Payne
b1ab82715e
Fix modules that import both strutils and unicode
...
This is only an issue when a proc in both modules that is named the same
is used, such as toLower or toUpper for strings.
2016-07-01 07:37:49 -06:00
Joey Payne
e0203a4463
Add useful unicode procs for string manipulation
...
Added: isUpper, isLower, isAlpha, isWhiteSpace, toUpper,
toLower, and capitalize
Renamed strutils procs that are similar to avoid conflicts
2016-07-01 07:37:35 -06:00
Joey Payne
79a8a5ee72
Add transition define for old split behavior
2016-07-01 07:24:30 -06:00
Joey Payne
890d7fac14
Fix split stdlib test
2016-07-01 07:24:30 -06:00