Commit Graph

5245 Commits

Author SHA1 Message Date
genotrance
16fcbee1bc Fix nightlies :test: snippet issue (#10862) 2019-03-19 08:17:35 +01:00
Arne Döring
97c3b113a5 Size ptr tuple (#10846)
* fixes #10117
* Add support for recursive tuples
* detect in generics
2019-03-18 11:37:09 +01:00
cooldome
862897dc0f Support for stmtListExpr in parser after major keywords. Scaled down version. (#10852)
* Support for stmtListExpr in parser after major keywords
* fixes #4035
2019-03-18 11:09:49 +01:00
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
Andreas Rumpf
ed878014be newruntime: progress 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
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
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
07f58ddfa9 rename: semasgn -> liftdestructors 2019-03-14 07:59:44 +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
Arne Döring
35aab357e2 Less warnings in macros (#10799) 2019-03-11 19:21:39 +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
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
Andreas Rumpf
3c0f01faa0 fixes #10791 2019-03-06 14:22:12 +01:00
Andreas Rumpf
e3e4cd9fd5 make tests green again 2019-03-06 09:26:48 +01:00
Andreas Rumpf
cfd5210405 dfa.nim: continues are bad 2019-03-06 09:00:06 +01:00
Andreas Rumpf
1c64934f46 implement system.default for the JS target 2019-03-05 19:58:54 +01:00
Andreas Rumpf
4be36d77f6 introduce tfHasOwned for fast must-move checkings; removed tfAcyclic as the GC has ignored this hint for quite some time now 2019-03-05 19:58:54 +01:00
Arne Döring
20a21aa184 colors for debugging (not for windows) (#10786) 2019-03-05 19:58:14 +01:00
Andreas Rumpf
c86b1fbcac fixes a critical GC safety inference bug (#10615)
* fixes a critical GC safety inference bug
* make nimsuggest compile again
* make Nimble compile again
2019-03-05 19:54:44 +01:00
Andreas Rumpf
142a2d3551 added system.default in order to prevent the abstraction inversion that 'template default(T): untyped = (var x: T; x)' causes 2019-03-05 09:54:59 +01:00
Andreas Rumpf
22445867d4 no underscores 2019-03-05 07:45:28 +01:00
Andreas Rumpf
e0437dfec4 better error message for 'owned' 2019-03-05 06:25:33 +01:00
Andreas Rumpf
9c6b628df6 DFA: fixes wrong 'def' instruction emission 2019-03-05 05:54:08 +01:00
Andreas Rumpf
3e922d0fec destructors/dfa: more documentation 2019-03-04 22:41:50 +01:00
Andreas Rumpf
75f8e136e1 ccgexprs.nim: less confusing code layout 2019-03-04 15:41:07 +01:00
Andreas Rumpf
4700018d7e cgen.nim: code cleanups 2019-03-04 15:41:07 +01:00
Andreas Rumpf
a6d49c3a81 special typing rules for owned pointers 2019-03-04 15:41:07 +01:00
sealmove
bf1f4b914b Added optional proc parameter to llStreamOpenStdIn (#10769) 2019-03-04 10:52:34 +01:00
Jacek Sieka
7072e3ddca doc: move specific checks to advanced options, for a less intimidatin… (#10779)
* doc: move specific checks to advanced options, for a less intimidating help

* remove useless bool
2019-03-04 10:49:55 +01:00
Arne Döring
1d9b88f25d sizealign of union type (#10780)
* sizealign of union type

* add error message for packed union
2019-03-04 09:19:38 +01:00
Arne Döring
ebe0473511 More depth debug proc (#10782)
* improved output on debugType
* cycle detection in debug print
* debug info finally really helpful
* finally usable debug info
* quote enum values
2019-03-04 09:17:47 +01:00
alaviss
8e12691213 compiler/extccomp: use getNimcacheDir for writing build instruction (#10772)
`conf.nimcacheDir` might be empty during build, which results in the
json build instructions being generated in the current directory. This
commit fixes the problem by using getNimcacheDir, which generates a
valid nimcacheDir should it be empty.

Fixes #10768
2019-03-04 09:09:14 +01:00
Jacek Sieka
7edc8bfe14 add wasm32 platform 2019-03-03 09:03:28 -06:00
Arne Döring
1102b8ac6e StringStream and parseJson, parseCfg, parseSql et al for the vm (#10746) 2019-02-28 22:57:57 +01:00
Andreas Rumpf
728ff1004a gc:destructors: progress 2019-02-28 22:39:24 +01:00