Dominik Picheta
ca6b4bf0f9
Asyncio2 doc improvements. Changed recvLine's behaviour.
...
recvLine had an edge case where it would return a partial line if the
socket were to be disconnected in the middle of a line being read. The
behaviour now is that the data is simply lost as it likely will be
unparsable by the protocol anyway.
2014-03-22 22:33:51 +00:00
Araq
a4f30c3682
fixes wrong commit
2014-03-22 23:02:01 +01:00
Araq
b76d2eac7f
fixes #1006
2014-03-22 22:59:23 +01:00
Araq
5f64d7a353
fixes #1023
2014-03-22 21:18:56 +01:00
Araq
5f478e5aa1
fixes #1010
2014-03-22 11:50:42 +01:00
Araq
5aac789e0e
Merge branch 'devel' of https://github.com/Araq/Nimrod into devel
2014-03-22 02:52:33 +01:00
Araq
e53fc91282
fixed tuples in a static context; preparations for correct compile time evaluation of integral ops
2014-03-22 02:52:06 +01:00
Araq
fb5ece805f
added mapMem/unmapMem to memfiles; untested
2014-03-22 02:51:03 +01:00
Araq
a431207e52
bugfix: reprEnum for enums with negative values
2014-03-22 02:49:51 +01:00
Araq
28e375c4f6
improved docs about strongSpaces
2014-03-22 02:45:35 +01:00
Araq
02e97422ed
c2nim knows about arrray[N, T]
2014-03-22 02:43:37 +01:00
Andreas Rumpf
13d26dc53d
Merge pull request #1021 from skyfex/devel
...
Added documentation for packed pragma
2014-03-21 23:52:30 +01:00
Audun Wilhelmsen
2a182f55ae
Fixed typo in docs
2014-03-21 18:10:27 +01:00
Audun Wilhelmsen
1b423139e6
Fixed typo and line breaks in docs
2014-03-20 23:47:50 +01:00
Zahary Karadjov
4f91dd40ed
msg -> errmsg
2014-03-21 00:27:28 +02:00
Audun Wilhelmsen
b59fba5845
Added documentation for packed pragma
2014-03-20 23:11:33 +01:00
Zahary Karadjov
09bda74e7d
fix #1015
2014-03-20 23:45:31 +02:00
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