Zahary Karadjov
8ba062d952
fix #1016
2014-03-20 23:24:25 +02:00
Zahary Karadjov
f49f2f38f0
fix the handling of "msg" tests
2014-03-20 23:12:24 +02:00
Zahary Karadjov
b2aa70c6ef
fix #1018
...
Previously, generic types originating from the same body symbol were compared
structurally. The bug illustrates a case, where such a comparison is not correct.
The new approach follows the established method used in typeRel.
2014-03-20 22:27:49 +02:00
Zahary Karadjov
8a0509b3b2
implements `distinct with/without X, Y`
...
This still doesn't work quite right, because some common operations like array
indexing lay completely outside the scope/symbol lookup system - they are not
even magics.
2014-03-20 01:16:50 +02:00
Zahary Karadjov
d508384d39
fix #1013
2014-03-20 01:16:50 +02:00
Zahary Karadjov
4b7655fd10
reference implementation of a vector swizzle library
...
This also provides the initial steps towards support for type class "filtered" type inference
fixes an "ordinal type expected" ICE, related to the use of static params
2014-03-20 01:16:50 +02:00
Andreas Rumpf
a66d059acc
Merge pull request #1014 from skyfex/devel
...
Packed pragma and tests for packed and union pragma
2014-03-19 22:29:37 +01:00
Audun Wilhelmsen
ca228e46b5
Fix compilation error when using packed pragma with vcc.
2014-03-18 21:23:35 +01:00
Audun Wilhelmsen
1e45bb79ab
Added support for {.packed.} pragma on objects
...
Added tests for packed and union pragmas
2014-03-18 21:11:57 +01:00
Andreas Rumpf
261a6ca017
Merge pull request #999 from zielmicha/zlib_abi_version
...
Provide zlib version explicitly on Linux.
2014-03-16 22:09:49 +01:00
Andreas Rumpf
c27fb4116e
Merge pull request #1000 from gradha/pr_adds_likely_example_983
...
Adds example to likely/unlikely docstring. Refs #983 .
2014-03-16 22:09:28 +01:00
Andreas Rumpf
9d4b77a65a
Merge pull request #1003 from flaviut/devel
...
Add token position to `nimrod scan`
2014-03-16 22:08:43 +01:00
Zahary Karadjov
b3da0ab888
fix #1007
2014-03-16 21:44:21 +02:00
Zahary Karadjov
26890b6525
make some tests red :) (i.e. print failure details while running the tester)
2014-03-16 21:05:20 +02:00
Zahary Karadjov
49b0440c47
make some tests green
2014-03-16 20:42:49 +02:00
Zahary Karadjov
f0953db3ba
handle arbitrary expressions dependent on static input params in proc signatures
2014-03-16 20:42:06 +02:00
Zahary Karadjov
da5d88f04e
use g++ and clang++ automatically when compiling to C++
2014-03-16 20:42:06 +02:00
Zahary Karadjov
ac271e76b1
more robust handling of proc signatures containing inter-param type references
2014-03-16 20:42:06 +02:00
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
flaviut
5e47c18e3f
Add token position to nimrod scan
...
A block of the format "linenum:col\t' is added to the start of each token that is printed.
2014-03-14 14:18:38 -04:00
Araq
3e056afb1c
fixes #993
2014-03-13 22:29:48 +01:00
Grzegorz Adam Hankiewicz
dd18c0ddd5
Adds example to likely/unlikely docstring. Refs #983 .
2014-03-13 19:56:11 +01:00
Michał Zieliński
a9bc8220fd
Provide zlib version explicit on Linux.
...
- workaround for Gentoo (#987 ),
- also, it's a good practice to provide ABI version in calls to dlopen,
so if zlib ever changes ABI, wrappers won't break siliently.
2014-03-13 12:04:27 +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