LemonBoy
03c8fdc6cb
Pick the and symbol we need explicitly ( #8249 )
...
Using getSysSym made the compiler pick a random `and` symbol: if the
symbol table is shuffled we may end up selecting one of the wrong
overloads.
Fixes #8246
2018-07-08 22:00:32 +02:00
Timothee Cour
befca425c4
workaround issue #8223 nim doc fails with doAssertRaises ( #8245 )
2018-07-08 08:16:13 +02:00
Dmitry Atamanov
a6c3bbf01a
Add proc toOpenArray[byte] for strings ( #7820 )
2018-07-07 21:03:22 +02:00
LemonBoy
88714e77d8
Fix comparison of tyGenericBody in typerel ( #8045 )
...
As shown in #7734 and #7733 the logic in typerel fails to determine that
`type Foo` and `type Foo` are indeed equal.
Fixes #7734
2018-07-07 20:49:06 +02:00
Dominik Picheta
73f9ce0221
Merge pull request #8239 from mratsim/patch-1
...
Put back deprecation path for SomeReal
2018-07-07 14:14:32 +01:00
Mamy Ratsimbazafy
75ef90da82
Put back deprecation path for SomeReal
...
was wrongly deleted in c7298561c1
2018-07-07 15:04:41 +02:00
Dominik Picheta
53ce58f050
Merge pull request #6587 from FedericoCeratto/normalizePath
...
Add normalizePath and tests
2018-07-07 10:12:07 +01:00
Dominik Picheta
6594244991
Merge pull request #8229 from timotheecour/patch-6
...
workaround for issue #8227
2018-07-07 10:09:38 +01:00
Timothee Cour
919e7d6656
Update appveyor.yml
2018-07-06 22:43:55 -07:00
Timothee Cour
105cdfa9e1
fix issue #8227
2018-07-06 22:39:08 -07:00
Araq
8667899d53
hotfix: fixes possible out of bounds access in ospaths.joinPath
2018-07-07 02:31:43 +02:00
Federico Ceratto
d65429d857
Add normalizePath and tests
2018-07-06 20:21:39 +01:00
Araq
352b8a4844
Merge branch 'araq-devel' of github.com:nim-lang/Nim into araq-devel
2018-07-06 19:14:35 +02:00
Araq
531013727d
system.nim: minor code style change
2018-07-06 19:13:54 +02:00
Araq
5384de685f
Merge branch 'devel' of github.com:nim-lang/Nim into araq-devel
2018-07-06 18:41:00 +02:00
Andreas Rumpf
963f431443
Merge branch 'araq-devel' of github.com:nim-lang/Nim into araq-devel
2018-07-06 17:27:02 +02:00
Andreas Rumpf
32230ffe31
make tests green again
2018-07-06 17:26:45 +02:00
Dominik Picheta
5e338c371e
Use '\L' instead of '\n' in system for backwards compatibility.
...
See https://github.com/nim-lang/packages/pull/785 .
2018-07-06 15:48:17 +01:00
Araq
8bcaee1fdf
make tmemfile2 work again
2018-07-06 15:53:32 +02:00
Andreas Rumpf
20950ee073
make test green for OSX
2018-07-06 11:26:36 +02:00
Andreas Rumpf
6b8167aaa1
make concepts tests green again
2018-07-06 11:16:05 +02:00
Andreas Rumpf
ae82406c8b
make tests green again
2018-07-05 19:14:18 +02:00
Joey
a1457bfa9f
Rewrite the memory management code for Nintendo Switch ( #8169 )
...
Rewrite the memory management code for Nintendo Switch
The first implementation was naive and did not account for multiple
memory allocations. However, this implementation may still be
incomplete. Currently, when running applications, the code runs fine.
When the application is exited via code (the end of the program is
reached or quit() is called), the Switch will crash. Not sure why this
happens, but I suspect it is from Nim memory allocations.
I suspect the memory allocations because when I compile the helloworld
application without any Nim allocations (just C function calls) and use
`--gc:none` as a compile option, the application exits fine.
2018-07-05 16:33:15 +02:00
Andreas Rumpf
0926754e68
make tests green again
2018-07-05 15:51:04 +02:00
genotrance
f7b76c9ea7
Revert "Test case for #5626 ( #8204 )" ( #8206 )
...
This reverts commit c7cc934632 .
2018-07-05 12:30:27 +02:00
Andreas Rumpf
9b31f67859
turn destructors into finalizers
2018-07-05 11:31:27 +02:00
Andreas Rumpf
683c60e2fd
restore deprecated PNimrodNode in order to make the CIs happy
2018-07-05 09:17:44 +02:00
Andreas Rumpf
04b3f8f24a
enable destructors without the --newruntime switch
2018-07-04 20:36:15 +02:00
Andreas Rumpf
db35ac435b
code cleanup: remove newScopeForIf switch
2018-07-04 20:04:08 +02:00
Andreas Rumpf
86a7054c88
Merge branch 'devel' into araq-devel
2018-07-04 19:25:53 +02:00
genotrance
c7cc934632
Test case for #5626 ( #8204 )
2018-07-03 22:47:50 -04:00
LemonBoy
ab47a870bc
Error out if vararg match isn't an exact one ( #8186 )
...
Fixes #8172
2018-07-03 15:10:12 +02:00
Timothee Cour
426e5c2d1f
simplify typetraits.nim test ( #8193 )
2018-07-03 12:19:46 +02:00
Vindaar
681d8e0749
Deprecate 'c', 'C' prefix for octal literals, fixes #8082 ( #8178 )
...
* deprecate `0c`, `0C` prefix for octal literals
Deprecates the previously allowed syntax of `0c` and `0C` as a prefix for
octal literals to bring the literals in line with the behavior of
`parseOct` from parseutils.
* add `msgKind` arg to `lexMessageLitNum` for deprecation messages
* change literal tests to check all valid integer literals
Also adds the `tinvaligintegerlit3` test to test for the (still)
invalid `0O` prefix.
2018-07-03 01:56:36 +02:00
genotrance
70cf286a22
Test case for #6281 ( #8190 )
2018-07-02 22:53:00 +02:00
Dominik Picheta
d1f983b37c
Merge pull request #8187 from zargot/bugfix/asyncftpclient
...
asyncftpclient: add missing file.close to retrFile
2018-07-02 17:37:39 +01:00
zargot
e63369f2b9
asyncftpclient: add missing file.close to retrFile
2018-07-02 18:07:24 +02:00
Tomohiro
c79f488027
Fix os.unixToNativePath proc returns wrong result( #8179 ) ( #8181 )
...
* Fix os.unixToNativePath proc returns wrong result(#8179 )
* Add tests for unixToNativePath
2018-07-02 17:14:26 +02:00
LemonBoy
2c98b4943e
Fix crash with static and anonymous procs ( #8171 )
...
Fixes #6077
2018-07-02 00:49:03 +02:00
Tomohiro
a2b2bc1a36
Fixed #8173 ( #8175 )
2018-07-02 00:46:56 +02:00
Andreas Rumpf
e455023902
Merge branch 'devel' into araq-devel
2018-07-01 16:24:56 +02:00
LemonBoy
dbbe311e18
Minor changes to discardable handling ( #8155 )
2018-07-01 15:27:14 +02:00
Andreas Rumpf
67c7e49e2a
gc_common: minor reformating
2018-07-01 15:10:18 +02:00
Oscar Nihlgård
b61e69202b
Unexport times.stringifyUnit ( #8168 )
2018-07-01 12:54:13 +02:00
Timothee Cour
fbd9f9da95
execCmdEx stderr redirection ( #8162 )
2018-07-01 04:38:15 -04:00
LemonBoy
584d778318
Fix use of custom pragmas in generic procs ( #8165 )
...
Fixes #7626
2018-07-01 08:06:58 +02:00
LemonBoy
eec239e851
Fix constant folding of len() with concept type ( #8143 )
...
Fixes #7952
2018-06-30 13:43:55 +02:00
Oscar Nihlgård
7ae9c4358e
Fix vm regression ( #8163 )
2018-06-30 13:38:52 +02:00
Oscar Nihlgård
d146045ed5
Fixes #6689 ( #8135 )
2018-06-30 09:16:46 +02:00
LemonBoy
0a14b3d198
Check the RHS when building a set ( #8159 )
...
Fixes #2669
2018-06-30 09:16:14 +02:00