Commit Graph

3120 Commits

Author SHA1 Message Date
Zahary Karadjov
7dcf6ff50b fix #997 2014-03-16 20:42:06 +02:00
Zahary Karadjov
27c2c1e75c fix #996 2014-03-16 20:42:06 +02:00
Zahary Karadjov
37b199d34a first phase of tyGenericParam reforms needed for static params 2014-03-16 20:42:06 +02:00
Zahary Karadjov
4d2c948281 fix #1001 2014-03-16 20:42:06 +02:00
Zahary Karadjov
cf8fe16a48 fix #715 again
the regression was caused by the introduction of "generic" lambdas
2014-03-16 20:42:06 +02:00
Zahary Karadjov
7080d02af4 allow multi-line expressions using the dot operator
this enables parsing of expressions like:

``` Nimrod
s.items
  .map(proc (x): auto = x * 2)
  .filter do (x) -> auto:
    return x % 2 == 0
  .group_by((x) => x.length)
```
2014-03-16 20:42:06 +02:00
Zahary Karadjov
63d93ad1ab grammar fix: allow free-standing expressions such as type(foo) is bar 2014-03-16 20:42:06 +02:00
Dominik Picheta
de64e8ec22 PFuture[void] now works.
Return types can also be completely ommitted. PFuture[void] will then be
implicitly deduced.
2014-03-15 00:11:01 +00:00
Dominik Picheta
0519afba1d Merge pull request #972 from Matthias247/ipaddress
Added a IpAddress structure to the net module
2014-03-14 21:27:00 +00:00
Matthias Einwag
95e4ab99e7 Make the IP address exceptions more detailed 2014-03-14 22:17:44 +01:00
Dominik Picheta
afb7dbf81a Fixes compilation of asyncio2 on Windows.
Added a close(PDispatcher, TSocketHandle) implementation which unregisters
the handle.
2014-03-14 20:18:51 +00:00
Dominik Picheta
1a75b17cd0 File descriptors are now removed from fds list explicitly in close().
Fixes tasyncawait on linux.
2014-03-14 18:46:08 +00:00
Araq
3e056afb1c fixes #993 2014-03-13 22:29:48 +01:00
Araq
1c35fb3c89 Merge branch 'devel' of https://github.com/Araq/Nimrod into devel 2014-03-13 02:52:51 +01:00
Araq
2fc84325c7 should fix the nkExprColonExpr bug in the vm 2014-03-13 02:52:40 +01:00
Dominik Picheta
d2f130c3fc Fix compilation on linux. 2014-03-12 23:19:40 +00:00
Dominik Picheta
d97a397139 Fixed tasyncawait on Windows.
Implicit registration of an fd now only occurs when a new socket is
created (in socket() or accept()). This makes the implementation much
simpler, changes to the linux version will follow.
2014-03-12 20:42:36 +00:00
Dominik Picheta
15919b7c98 EOS exception now contains the error code. 2014-03-11 23:06:22 +00:00
Dominik Picheta
2ce07042fd tasyncawait now works on Linux.
Reworked detection of a file descriptor being closed with epoll (in the
case of sockets it is when the remote host disconnects). Ensured that
events are only updated when they change.
2014-03-11 21:53:35 +00:00
Zahary Karadjov
9b5357da5a Merge branch 'devel' of github.com:Araq/Nimrod into devel 2014-03-11 00:59:35 +02:00
Zahary Karadjov
71695ab791 fix tsemistatic 2014-03-11 00:58:27 +02:00
Araq
3270676e77 Merge branch 'devel' of https://github.com/Araq/Nimrod into devel 2014-03-10 22:23:38 +01:00
Araq
121553d1a6 osproc compiles again for haiku 2014-03-10 17:32:50 +01:00
Zahary Karadjov
1546d210c5 fix #971 2014-03-10 18:13:48 +02:00
Zahary Karadjov
85fe5e1940 fix #988
trivial crash caused due to unchecked iteration over an empty reclist
2014-03-10 13:04:22 +02:00
Araq
d4714ed14e minor additions to the manual 2014-03-10 08:46:41 +01:00
Zahary Karadjov
d5798b43de fix #986 2014-03-10 01:57:08 +02:00
Zahary Karadjov
9fb0755572 further improvements for static generic params; activate the hardest test cases 2014-03-10 00:36:19 +02:00
Zahary Karadjov
45a345e93d fix #866; generic static params 2014-03-09 23:38:17 +02:00
Zahary Karadjov
3dcf735482 fix #909 2014-03-09 22:15:11 +02:00
Zahary Karadjov
29b7104a53 fix #829; (macros.quote)
the fix is a little bit peculiar:

the inserted call to getAst was getting a false-positive for being a lambda proc,
because lambdalifting.isInnerProc takes into account who is the owner of a given
symbol: (a nested proc is a callable symbol owned by the enclosing proc)
2014-03-09 21:04:12 +02:00
Zahary Karadjov
752352a683 fix #949 2014-03-09 20:47:05 +02:00
Zahary Karadjov
eebe0035b5 teach opcLdObj about nkExprColonExpr 2014-03-09 17:06:29 +02:00
Zahary Karadjov
1793a0b5ce Merge branch 'devel' of github.com:Araq/Nimrod into devel 2014-03-09 16:05:29 +02:00
Zahary Karadjov
5aa486cf11 few more fixes for static params in macros; new failing test cases for static evaluation 2014-03-09 16:04:58 +02:00
Dominik Picheta
a097526956 Fixes to asyncio2 on Linux. 2014-03-09 13:49:38 +00:00
Zahary Karadjov
5820093e58 Merge branch 'devel' of github.com:Araq/Nimrod into devel 2014-03-09 14:02:16 +02:00
Zahary Karadjov
4b09a89758 fix #966
test for ``map`` defined as inline iterator
2014-03-09 14:02:01 +02:00
Matthias Einwag
7b055388b7 raise exceptions through newException 2014-03-09 11:47:22 +01:00
Zahary Karadjov
518b794491 implicit auto return type for inline iterators 2014-03-08 23:27:33 +02:00
Zahary Karadjov
085b339b8b implements higher-order inline iterators and return type inference for iterators 2014-03-08 22:57:06 +02:00
Andreas Rumpf
7704cdc90e Merge pull request #981 from Varriount/tester/enhanced-json-output
Tester now outputs all the test results of the current test run to json.
2014-03-08 21:51:55 +01:00
Clay Sweetser
5f19af9e01 Removed debug code 2014-03-08 14:30:05 -05:00
Andreas Rumpf
edfcbab86f Merge pull request #899 from Leu-Gim/master
Fixes passing non-default host and port to db_mysql.Open.
2014-03-08 10:46:39 +01:00
Andreas Rumpf
aaa13c0011 Merge pull request #979 from EXetoC/alloc-overloads
More updates to the allocation interface
2014-03-08 10:33:13 +01:00
Clay Sweetser
71de5ea909 Tester now outputs all the test results of the current test run to json. 2014-03-07 17:50:57 -05:00
Araq
dd216755ff Merge branch 'devel' of https://github.com/Araq/Nimrod into devel 2014-03-07 22:28:48 +01:00
Araq
91d842e1ec implements strongSpaces parsing mode 2014-03-07 22:25:05 +01:00
EXetoC
3147f7f6c2 Use 'Natural' or 'Positive' instead of 'int' where applicable. 2014-03-07 01:32:07 +01:00
EXetoC
c7b83d2c44 Update unit test. 2014-03-07 01:09:16 +01:00