Commit Graph

11210 Commits

Author SHA1 Message Date
Andreas Rumpf
b7bffa35c7 attempt to make sighashes produce smaller diffs 2017-04-19 08:40:05 +02:00
Michał Zieliński
43dae68a42 inter.txt: fix git bisect example (#5722) 2017-04-19 00:36:28 +02:00
Zach Smith
fa592f3aad Minor: spelling correction in tables.nim (#5727) 2017-04-19 00:35:44 +02:00
Zahary Karadjov
3e52bb6535 fix a regrsesion in signature matching of derived ptr types 2017-04-18 23:55:59 +03:00
Dominik Picheta
03ddfddcae Add test for previous commit. 2017-04-17 20:04:24 +02:00
Dominik Picheta
5a4c06dbdc Support JInt fields for 'float' in JSON umarshal macro. 2017-04-17 19:47:43 +02:00
Dominik Picheta
793d6efffb Fixes null handling for object refs in JSON unmarshal macro. 2017-04-17 18:43:31 +02:00
Dominik Picheta
b829092c9e Add support for BiggestInt in JSON unmarshal macro. 2017-04-17 18:01:38 +02:00
Dominik Picheta
2108dcf0d5 Fix JSON macro bug with ref objects. 2017-04-17 18:01:38 +02:00
Dominik Picheta
afb7542d20 Merge pull request #5720 from FedericoCeratto/patch-27
Fix cookie timestamp format #5718
2017-04-17 14:33:15 +02:00
Dominik Picheta
12f758cc42 Merge pull request #5719 from FedericoCeratto/patch-26
Fix "secure" capitalization
2017-04-17 14:14:53 +02:00
Federico Ceratto
856d04c146 Fix cookie timestamp format #5718
See https://tools.ietf.org/html/rfc6265
2017-04-17 12:58:10 +01:00
Federico Ceratto
407beef7fd Fix "secure" capitalization
See https://tools.ietf.org/html/rfc6265
2017-04-17 12:54:23 +01:00
Jacek Sieka
99d20f6112 fix redundant time import with different signature (#5715) 2017-04-16 22:50:10 +02:00
Zahary Karadjov
13701c0957 Restore the compilation of linalg by tweaking the complex disambiguation rules
This commit is a potentially breaking change, but the problem was that
linalg was relying on a previous bug in the compiler, which was fixed
in the concepts branch.

With the old disambiguation rules, generic procs like:

proc \`==\`[T](lhs, rhs: T)

and

proc \`==\`(lhs, rhs: Matrix32|Matrix64)

.. were considered equal, even though it's obvious that the second one
should be preferred. We never noticed this, because there was a bug in
sigmatch incorrectly counting one of the params of the second proc as
a non-generic match, thus giving it an edge.

This commit gives some preference to tyOr and tyAnd during the complex
disambiguation, which may affect overload resolution in other cases.

I see this only as a temporary solution. With my upcoming work on
concept refinement, I plan to provide an experimental implementation
of alaternative C++-like rules for determining which proc is more specific.
We can then discuss our strategy for dealing with such a breaking change.
2017-04-16 16:11:45 +03:00
Zahary Karadjov
2da4a4fbe3 fix regression in tmatrixconcept 2017-04-16 14:39:00 +03:00
Zahary Karadjov
3571a8d2f1 more sophisticated test for the previous commit 2017-04-16 14:14:14 +03:00
Zahary Karadjov
4da8536701 fix compilation regression in alea 2017-04-16 13:42:33 +03:00
Zahary Karadjov
dfbafff2e7 fix a compilation error in linalg 2017-04-16 02:44:58 +03:00
Dominik Picheta
759a586b19 Fix huge logo in readme. 2017-04-15 15:50:28 +02:00
Dominik Picheta
5cf31417a6 Fixes #5710. Closes #5711. 2017-04-15 09:03:12 +02:00
Zahary Karadjov
bf4ce87e5b fix #5689 2017-04-15 02:53:28 +03:00
Zahary Karadjov
d578815963 fix #5683 2017-04-14 23:54:09 +03:00
Zahary Karadjov
8de19a7f4c fix a parsing regression (do is still mandatory in some situations) 2017-04-14 23:48:43 +03:00
Andreas Rumpf
55b5401dc6 fixes yet another regression caused by the .procvar removal 2017-04-14 19:18:26 +02:00
Jacek Sieka
ce86b4ad78 Posix from detect (#5697)
* refactor posix.nim
* types move to separate files for platform-specifc and generic
("other')
* consts move to separate files that get autogenerated by detect.nim
* proc's stay where they are for now, though in a second stage might
move as well
* fix missing when
2017-04-12 23:10:54 +02:00
Jacek Sieka
e512358bc9 Linux abi take 3 (#5692)
* avoid generating object fields for imported types
* fix some abi/type issues for linux_amd64
2017-04-12 22:57:10 +02:00
Ruslan Mustakov
926563f0e6 Ignore constant-conversion warning (#5696) 2017-04-12 22:09:00 +02:00
Andreas Rumpf
e8389dcb93 docgen: make whitespace around 'class=' more consistent 2017-04-12 15:05:28 +02:00
Eugene Kabanov
050918aa2a Fix tioselectors.nim for appveyor. (#5694) 2017-04-12 08:43:41 +02:00
Zahary Karadjov
03770daba4 allow StmtLists to pass through semExprWithType
This fix was necessary in order to fix the lambda lifting used in
the "jsffi" module, which relies on turning nkStmtList into nkLambda
in a catch-all dot operator.
2017-04-11 02:22:13 +03:00
Zahary Karadjov
54a1d9c16a wip 2017-04-11 00:48:52 +03:00
Zahary Karadjov
a3f19c87fb lift parameter-less do block to lambdas 2017-04-10 23:58:05 +03:00
Zahary Karadjov
f7b10e213b support post expression blocks in return and yield 2017-04-10 17:26:50 +03:00
Zahary Karadjov
8b63b84924 fix a regression in tlexerex 2017-04-10 13:06:06 +03:00
Zahary Karadjov
8cb11aac4f adapt quote to the new parsing rules 2017-04-10 12:23:04 +03:00
Zahary Karadjov
e7eb01ed48 fix a parsing regression (calls with do inside param lists)
This treatment is applied only when "do" is used, because
the code foo(x: bar) is recognized as object construction.
2017-04-10 12:08:40 +03:00
Zahary Karadjov
9ffaee3f88 fully consisent parsing between the new and the old 'do blocks' 2017-04-10 11:44:02 +03:00
Zahary Karadjov
34b2527441 the new blocks without 'do' produce compatible AST with 'do blocks' 2017-04-09 23:45:52 +03:00
Zahary Karadjov
48a1a54d1c improve the usability of the jsffi module
* All JavaScript operators are usable with JsObject
* The dot operators will use native JavaScript strings
* Results returned from dot calls are consired discardable
2017-04-09 23:04:55 +03:00
Zahary Karadjov
987b522071 fix the do notation when used with procs 2017-04-09 22:59:24 +03:00
Dominik Picheta
c9c64240d3 Fixes ambiguity introduced by #5390. 2017-04-09 20:27:28 +02:00
Dominik Picheta
88cb40cd31 Implement support for enum fields in JSON macro. 2017-04-09 17:22:40 +02:00
Dominik Picheta
bd58a0d67c Use doAssert in JSON macro and improve diagnostics. 2017-04-09 17:04:31 +02:00
Federico Ceratto
9f77233ab4 Add JSON tests based on https://github.com/nst/JSONTestSuite 2017-04-09 14:04:37 +01:00
Dominik Picheta
4bd650ee42 Merge branch 'feature/json-macro' into devel 2017-04-09 13:11:09 +02:00
Dominik Picheta
7ac0c15e7a Improve documentation in the JSON module. 2017-04-09 13:09:59 +02:00
Dominik Picheta
eedc6fecd7 Document to macro in JSON and add example. 2017-04-09 12:48:07 +02:00
Dominik Picheta
a883424d0d Implements else branch for JSON unmarshalling of object variants. 2017-04-09 11:49:50 +02:00
Zahary Karadjov
03172bef6f fix #5643; fix #5644 2017-04-08 23:42:42 +03:00