Commit Graph

15008 Commits

Author SHA1 Message Date
cooldome
c19cd14fc9 fixes #10838 (#10841)
* fixes #10838
* reject func in types instead
* trigger tests
2019-03-18 11:04:01 +01:00
Miran
afeca3d9fe multi-methods need to be explicitly enabled (#10856)
* multi-methods need to be explicitly enabled

* update changelog, manual and tutorial
2019-03-18 08:21:37 +01:00
Dominik Picheta
9e28d52c2f Merge pull request #10850 from FedericoCeratto/egress-ipaddr
Detect local "egress" IP address
2019-03-17 19:29:51 +00:00
Federico Ceratto
5825dcb0b5 Detect local "primary" IP address 2019-03-17 16:58:27 +00:00
Andreas Rumpf
328901757a make DLLs tests green again 2019-03-15 17:51:52 +01:00
Andreas Rumpf
ed878014be newruntime: progress 2019-03-15 17:51:52 +01:00
Andreas Rumpf
8e5c1436ad fixes #10845 2019-03-15 17:51:52 +01:00
Andreas Rumpf
16355de5eb rename for code clarity 2019-03-15 17:51:52 +01:00
Andreas Rumpf
831626be85 newruntime: make dynamic destructors compatible with C++ 2019-03-15 17:51:52 +01:00
cooldome
5dea7c5ad7 revert discard in destroyer (#10840)
* revert discard in destroyer

* disable test
2019-03-15 13:49:32 +01:00
Andreas Rumpf
e263702688 --newruntime: progress 2019-03-14 19:53:27 +01:00
narimiran
f1a945b05f bring back typetraits.$ for backward compatibility
Some packages are still using ``from typetraits import `$` ``
which is now available from system (no need to import it).
2019-03-14 17:09:33 +01:00
narimiran
7372a4c4aa Revert "put extracted modules behind the switch, to enable doc generation"
This reverts commit 71bff7d2df.
2019-03-14 13:22:46 +01:00
narimiran
71bff7d2df put extracted modules behind the switch, to enable doc generation 2019-03-14 11:14:04 +01:00
Andreas Rumpf
4181baf400 multi-methods: remove hack, make tmethod_various compile under strict C++ [backport] 2019-03-14 09:03:21 +01:00
Andreas Rumpf
2ab6b2c657 --newruntime: work in progress 2019-03-14 07:59:44 +01:00
Andreas Rumpf
79b1eafa59 gc: removed dead code 2019-03-14 07:59:44 +01:00
Andreas Rumpf
62ab338900 added lowerings.genLen helper proc 2019-03-14 07:59:44 +01:00
Andreas Rumpf
1f61498238 added types.isFinal helper proc 2019-03-14 07:59:44 +01:00
Andreas Rumpf
ee7a9a272d destroyer.nim: added a remark about code generation 2019-03-14 07:59:44 +01:00
Andreas Rumpf
436ec57f83 seqs.nim: added a remark about C++ optimizers 2019-03-14 07:59:44 +01:00
Andreas Rumpf
07f58ddfa9 rename: semasgn -> liftdestructors 2019-03-14 07:59:44 +01:00
narimiran
939c151224 create docs for the extracted modules 2019-03-13 17:43:54 +01:00
Miran
84d3f3d448 move system.dollars in a separate file (#10829) 2019-03-13 15:59:09 +01:00
Bogdan
b270917de1 Make HWND a pointer instead of a cint and fix MSVC compiler warning (#10789)
In Windows, a HWND is a HANDLE which is a PVOID so a pointer in Nim
2019-03-13 15:54:36 +01:00
Tomohiro
cd3a58d7b0 bitops: add reverseBits and test (#10835) 2019-03-13 15:53:40 +01:00
Miran
091da5c979 testament: catch failing nimble tests (#10832)
* testament: catch failing nimble tests and clean up a bit
* fix name collision
2019-03-13 11:52:15 +01:00
cooldome
d8c3df2683 fixes #10805 (#10806) 2019-03-13 10:23:06 +01:00
sealmove
ab872be476 Added nimscript support to repl (#10834)
* added nimscript support to repl
* added bool parameter to runRepl en/disabling nimscript support
2019-03-13 10:21:24 +01:00
cooldome
8ceba8a7f3 fixes #10807 (#10814)
* fixes  #10807
* use nkAddr instead of nkHiddenAddr
2019-03-12 13:45:05 +01:00
cooldome
ea3e18bc6c fixes dce regression #10703 (#10820)
* fixes #10703

* emit frame defines once
2019-03-12 08:24:17 +01:00
Dominik Picheta
3e04afda9f Merge pull request #10823 from narimiran/json-tuples
simplify json.% for tuples and objects
2019-03-11 21:38:42 +00:00
Arne Döring
35aab357e2 Less warnings in macros (#10799) 2019-03-11 19:21:39 +01:00
narimiran
863848ad56 simplify json.% for tuples and objects 2019-03-11 16:51:06 +01:00
Miran
06f23572d0 system: some documentation improvements (#10809) 2019-03-11 11:04:08 +01:00
narimiran
44d47134f9 Revert "Follow the documentation's recommendation (#10808)"
This reverts commit 1a13b3a14e.
2019-03-10 20:09:35 +01:00
sealmove
92cd07be8b Fixed order of output in repl and added a proc for opening a custom repl (#10802) 2019-03-10 20:02:47 +01:00
zah
b9f8528db6 Don't include the nimhcr dev docs in the system module documentation (#10759) 2019-03-08 15:23:36 +01:00
Miran
bba3a20e7c documentation style tweaks (#10790)
* exports are the least important field in the docs:
  they are put in the last place (at the bottom)
* indent text after proc/type declaration for an easier navigation
  (noticeable difference between declarations and examples)
* quickfix invalid style in `asynchttpserver`
2019-03-08 13:55:26 +01:00
Alexander Ivanov
3294ce3831 Render a colon for command if last arg list (#10803) 2019-03-08 13:31:24 +01:00
Anthon van der Neut
1a13b3a14e Follow the documentation's recommendation (#10808)
The doc states "Make sure to pass options explicitly.", but the example didn't. 
Since constructing a string for the shell with appropriate quotes is non-trivial, the first example should be how to use `execProcess`  including `args`
2019-03-08 13:20:36 +01:00
Andreas Rumpf
5c201791b3 make tests green again 2019-03-07 17:11:22 +01:00
Andreas Rumpf
0a93cf6fb9 fixes the regression 2019-03-07 12:55:30 +01:00
Andreas Rumpf
5b1a2eecd5 owned refs must be moved 2019-03-07 12:50:33 +01:00
Andreas Rumpf
f8bf24623c explicit default values for a leaner codegen, .cursor variables for optimization 2019-03-07 12:50:33 +01:00
Miran
2b5e48d807 move assertions and iterators out of system.nim (#10597)
* move assertions and iterators out of system.nim
* limit nimsuggest tests to the first 3 suggestions
2019-03-07 00:49:39 +01:00
narimiran
26f48437ca better nimpy test
As discussed with @yglukhov.
2019-03-06 17:48:01 +01:00
Andreas Rumpf
3c0f01faa0 fixes #10791 2019-03-06 14:22:12 +01:00
Andreas Rumpf
32c9ca605e fixes #10795 2019-03-06 10:15:27 +01:00
Andreas Rumpf
e3e4cd9fd5 make tests green again 2019-03-06 09:26:48 +01:00