Commit Graph

13346 Commits

Author SHA1 Message Date
awr
c2b09a499c Fix merge 2018-09-04 16:46:43 -05:00
awr
cd3d4faa79 Deny THIS experimental pragma specifically for non-toplevel 2018-09-04 16:42:37 -05:00
awr1
eb668003bf Merge branch 'devel' into experimentalize-reorder 2018-09-04 16:33:52 -05:00
awr
89ad1cc9b1 tabling declared() stuff 2018-09-04 16:21:47 -05:00
awr
e6a4213fae transformed {.reorder: on.} into {.experimental: codeReordering.}, added tests 2018-09-04 15:31:38 -05:00
LemonBoy
4aba2981dd Codegen fix for function pointers marked inline (#8866)
Fixes #5345
Fixes #5701
2018-09-04 15:28:14 +02:00
c-blake
cec89d8354 This has been unnecessary as long as rawNewObj has called zeroMem, (#8867)
and more recently indexing past the Nim-logical end has become
illegal making this line cause a crash.
2018-09-04 15:26:34 +02:00
Yuriy Glukhov
d2eea9e1c9 Fixes #8851 (#8859) 2018-09-04 08:18:11 +02:00
Dominik Picheta
e789acb59b Merge pull request #8840 from pigmej/fix_with_timeout
Handle fut.failed in asyncdispatch.WithTimeout
2018-09-03 21:34:52 +01:00
Andreas Rumpf
e4be1cb814 system.compileDate and compileTime are in UTC; fixes #7305; docgen supports SOURCE_DATE_EPOCH, fixes #3113 2018-09-03 22:23:10 +02:00
Araq
b53531ee31 make 'koch web' work again 2018-09-03 20:02:59 +02:00
Araq
320582a55c cleanup Nim's examples/ directory; closes #7725 2018-09-03 18:29:11 +02:00
LemonBoy
1a60ffcf1d Correctly mangle this in the JS backend (#8853)
As shown in pragmagic/karax#67 using `this` as parameter name made the
codegen output wrong code (and the user didn't notice the errors in the
browser console).
2018-09-03 17:51:30 +02:00
Araq
0694c9080f fixes #8043 2018-09-03 16:07:44 +02:00
cooldome
e63c66b810 Add sym owner to macros (#8253) 2018-09-03 13:25:59 +02:00
Araq
1abef2dc59 improve the error message for 'addQuitProc' etc; fixes #5794 2018-09-03 12:27:23 +02:00
Araq
6261309d1b document the fact that --define symbols are completely case insensitive; closes #7506 2018-09-03 12:09:14 +02:00
Araq
4e05bca96f manual: add a note about the terminating zero for strings; refs #5596 2018-09-03 12:06:34 +02:00
Araq
d1e3a7c827 document Nim's signal handling briefly; closes #8224 2018-09-03 12:02:56 +02:00
Araq
4b823b2825 manual: more documentation for the 'using' statement; closes #8565 2018-09-03 11:51:15 +02:00
Araq
602aeef4d4 manual: document the 'unsafeAddr' operator; closes #5038 2018-09-03 11:40:14 +02:00
Araq
4993274f2f document 'var T' and 'typedesc' restriction in generics; closes #1156 2018-09-03 11:38:15 +02:00
Araq
47cbe0e54d fixes #8852 2018-09-03 11:19:18 +02:00
Araq
e0fd1cdb5f fix items for cstring for the JS target; makes tests green again 2018-09-03 11:13:59 +02:00
Araq
b3c3a46317 fixes #5745 2018-09-03 10:50:39 +02:00
Araq
7cea0c1765 closes #5252 2018-09-03 10:16:11 +02:00
Araq
9e48999567 closes #4750 2018-09-03 10:02:37 +02:00
Araq
ef771cde1a document usage of marshal.to; fixes #3150 2018-09-03 09:44:44 +02:00
Araq
7278f28740 fixes the remaining fixable Nimrod->Nim renamings; closes #2032 2018-09-03 09:34:31 +02:00
Araq
7ace82440f deprecate system.onRaise; fixes #1652 2018-09-03 09:22:19 +02:00
Araq
077f24ab2d fixes #8797 2018-09-03 09:14:12 +02:00
Araq
cfbf9dcc59 fixes #8740 2018-09-03 09:06:52 +02:00
Araq
fa338768a3 fixes #8847 2018-09-03 08:37:32 +02:00
Andreas Rumpf
dc67dd3bef fixes #8028 2018-09-03 01:35:45 +02:00
Andreas Rumpf
0d68ef9f11 runnableExample: put each example to its own file; fixes #7285 2018-09-03 00:43:12 +02:00
Andreas Rumpf
06dbe9697f fixes #8831 2018-09-03 00:43:12 +02:00
LemonBoy
fd7fd1819c Make sure addGotoOut always inserts its node (#8843)
Fixes #8773
2018-09-03 00:32:26 +02:00
Andreas Rumpf
1948eadc24 change runnableExamples implementation; fixes #8641; fixes #7135; runnableExamples works for templates and generics 2018-09-02 22:56:26 +02:00
Andreas Rumpf
4cf704bb3e fixes #8694 2018-09-02 22:44:48 +02:00
Jedrzej Nowak
ac066c5db0 Handle fut.failed in asyncdispatch.WithTimeout
Fixes: #8839
2018-09-02 01:49:03 +02:00
Dominik Picheta
d06da9ccf0 Exports dom.Style (#8444) 2018-09-01 00:24:09 +02:00
Araq
06e6c38d99 strutils: don't deprecate escape/unescape, too much code uses it 2018-08-31 17:30:58 +02:00
Araq
e09eeb02bf fixes #8052 2018-08-31 17:27:57 +02:00
LemonBoy
2c8361bd39 Constant folding for integer casts (#8095) 2018-08-31 13:45:42 +02:00
LemonBoy
b74faf354e Do not materialize empty varargs[untyped] arrays (#8715)
When an empty nkArgList `varargs[untyped]` is passed around it is now
reused for efficiency sake and to prevent the introduction of a spurious
element: before this commit we'd pass the caller a
nkArgList[nkHiddenStdConv[nkBracket]] node instead of just an empty
nkArgList.

Fixes #8706
2018-08-31 12:16:46 +02:00
Nathan Cahill
aa33bcb974 Update html elements to current html spec (#8791) 2018-08-31 12:03:49 +02:00
alaviss
198e34ec1d system/excpt: nil is no longer vaild for seqs (#8825) 2018-08-31 11:24:01 +02:00
Araq
bacf08e65d merged #8624 manually; fixes #8442; closes #8575 2018-08-31 11:19:42 +02:00
Vindaar
47c7fd037e Improve enumerate macro (#8819)
* fix case macro manual entry to produce code block

Previously line breaks were so weird that the code blocks were not created.

* improve `enumerate` for loop macro by wrapping in block
2018-08-31 01:16:44 +02:00
Araq
2f7b979e38 fixes #8066 2018-08-31 00:30:19 +02:00