Max Zerzouri
7527da7043
.n.isNil checks for tyTuple PTypes.
2015-03-07 17:56:29 +13:00
Nathan Hoad
5978625c12
Make IP address checking more obvious, and add tests for the net module.
2015-03-07 12:37:52 +11:00
Andreas Rumpf
d8ad078f6c
Merge pull request #2284 from oderwat/fix-importer
...
Fixing import path support inconsitency.
2015-03-07 01:50:33 +01:00
Hans Raaf
b85da579b3
Fixing import path support inconsitency.
2015-03-07 00:27:42 +01:00
Andreas Rumpf
3b86c897a0
Merge pull request #2282 from reactormonk/disable-nimble-tests
...
fixed a bug in nimble tests - disable for now
2015-03-06 23:24:56 +01:00
Simon Hafner
df0afd8752
fixed a bug in nimble tests - disable for now
2015-03-06 12:59:36 -06:00
Hans Raaf
9e2f79251c
Do we want we to use the typesystem like this?
2015-03-06 18:16:00 +01:00
Hans Raaf
534fe46b82
Added repeat(seq, n) to sequtils.
...
This adds a repeat proc for sequences. There is also an test for it at the end of file.
2015-03-06 18:16:00 +01:00
Simon Hafner
20283b81fa
update WarningsToStr
2015-03-06 10:46:33 -06:00
Dominik Picheta
2c0dfcb302
Merge pull request #2277 from SSPkrolik/redis-hll
...
Added HyperLogLog support to Redis client
2015-03-06 15:52:47 +00:00
Nathan Hoad
d27f40d9b1
Add SNI support to client and server sockets.
2015-03-07 00:48:32 +11:00
krolik
093b2adf65
Added HyperLogLog support to Redis client
2015-03-06 14:27:16 +02:00
Dominik Picheta
d8c5c2f222
Export AsyncFile. Add asyncfile module to docgen.
2015-03-06 10:51:56 +00:00
Andreas Rumpf
fcb44ae4f0
Merge pull request #2267 from SSPkrolik/tables-getter-fix
...
Fixed table getter not compiling when table key type had not '$' proc ...
2015-03-06 10:18:03 +01:00
Max Zerzouri
dba25d2622
enable syntax for anonymous tuples.
...
Turns out to be slightly problematic as `(int, int)` could be logically
thought of as an expression evaluating to a tuple value containing
two typedesc[int]s.
To disambiguate, the zero-tuple's type must still be written as
`tuple[]`, and what would be tuple value expressions containing only
typedescs are interpreted as types.
() # value of type `tuple[]`
(int, int) # tuple type
(int, int, ()) # value of type `(typedesc[int], typedesc[int], tuple[])`
2015-03-06 12:23:31 +13:00
Max Zerzouri
9c126282b2
interpret tuple as a class and tuple[] as the empty tuple
...
When the indentation syntax is allowed it is always interpreted as a
tuple:
type
Unit = tuple
2015-03-06 12:20:15 +13:00
Simon Hafner
fb8c0280bd
better messages for nimout
2015-03-05 16:15:28 -06:00
Maurizio Tomasi
9c113b5264
Grammar fixes in the docstrings
2015-03-05 22:38:53 +01:00
Dominik Picheta
bab8190b67
Fixes bugs introduced by ee62d56cad. Closes #2227 .
2015-03-05 21:18:28 +00:00
Simon Hafner
1e1d58c3bc
nimout instead of msg for warnings
2015-03-05 14:53:46 -06:00
Simon Hafner
70eaf92ff0
Merge branch 'devel' into warning-for-result
2015-03-05 14:44:54 -06:00
Simon Hafner
f592240c54
added test for result shadow warning
2015-03-05 14:44:50 -06:00
reactormonk
4e1afdd3e2
Merge pull request #2265 from jobe2015/korr_hashes_doku
...
Changed some characters (&! -> !&) in the documentation in lib/pure/hash...
2015-03-06 01:28:22 +05:00
Araq
cac259cdfb
fixes #2229
2015-03-05 20:39:25 +01:00
Flaviu Tamas
763e902b65
Remove renderBounds()
...
A debug proc, it's not really useful and throws warnings anyway.
2015-03-05 10:42:37 -05:00
Maurizio Tomasi
bf7c342426
New templates for getting the limits of FP types added.
...
New variable "FP_RADIX" and new templates "mantissaDigits",
"digits", "minExponent", "maxExponent", "min10Exponent",
"max10Exponent", "minimumPositiveValue", "maximumPositiveValue", and
"epsilon" added to retrieve the limits of floating-point types.
2015-03-05 15:04:39 +01:00
krolik
4fe0a72577
Fixed table getter not compiling when table value type had not '$' proc overriden
2015-03-05 14:43:15 +02:00
Johanna Berewinkel
04906d6993
Changed some characters (&! -> !&) in the documentation in lib/pure/hashes.nim
2015-03-05 12:01:42 +01:00
Araq
3adcad1b5d
fixes #2250
2015-03-05 11:17:14 +01:00
Andreas Rumpf
70d0894ace
Merge pull request #2249 from flaviut/fix-nimcheck
...
Fix #2247
2015-03-05 11:14:40 +01:00
Flaviu Tamas
e5e5970d93
Fix broken logic in 7296c6d
...
Thanks @fowlmouth for pointing this problem out in IRC.
2015-03-04 21:45:56 -05:00
Flaviu Tamas
08680cfebd
Fix #2247
...
Thanks @Araq for the suggestion
2015-03-04 21:21:10 -05:00
Araq
d61f326f38
prevent name mangling for C++ DLLs
2015-03-05 01:34:09 +01:00
Flaviu Tamas
ab6e83ad41
Fix tests broken in 7296c6d
...
7296c6d doesn't do any nil checking, so it segfaults on `==` on `Regex`
2015-03-04 19:29:35 -05:00
Flaviu Tamas
b556bd9abf
Fix "could not import: pcre_stack_guard"
...
kanaka/mal#20 related, seems like some systems have older PCREs, without
pcre_stack_guard. Since it isn't expclitly used, this will *hopefully* prevent
errors from occurring.
2015-03-04 19:15:53 -05:00
Araq
83cab19c62
fixes #2252
2015-03-04 21:19:38 +01:00
Araq
8ade324b8c
cleaned up whitespace
2015-03-04 18:17:43 +01:00
Andreas Rumpf
1ca2db0273
Merge pull request #2260 from oderwat/upd-deprecated-repeats
...
Updates to remove deprecated repeatStr() and repeatChar() from all files.
2015-03-04 16:42:13 +01:00
Andreas Rumpf
32126aaad6
Merge pull request #2262 from jobe2015/re-replace-doku
...
Fixed examples in the documentation of module re
2015-03-04 16:39:55 +01:00
Johanna Berewinkel
12e4a62b44
Fixed examples in the documentation of module re (proc replace and proc replacef)
2015-03-04 09:05:30 +01:00
Hans Raaf
b902ea887b
Replaced deprecated repeatStr() with repeat().
2015-03-04 03:44:09 +01:00
def
20426e77e9
Fix copyStrLast to set the trailing \0 char
2015-03-04 03:37:50 +01:00
Hans Raaf
58186f6c1d
Replaced deprecated repeatChar() with repeat() or spaces().
2015-03-04 03:30:43 +01:00
def
d875951124
sizeof(char) is always 1
2015-03-04 03:22:06 +01:00
def
0264b42216
Also deepCopy strings only up to their length, not capacity
2015-03-04 03:21:17 +01:00
Andreas Rumpf
b1656f2db4
Merge pull request #2230 from Archs/devel
...
streams.ssWriteData: Call setLen only when new data truly increases the underlying string buffer
2015-03-04 03:08:38 +01:00
Andreas Rumpf
171de9c355
Merge pull request #2175 from def-/sorted
...
sorted & sortByIt
2015-03-04 03:08:21 +01:00
def
f5968c7946
Only zero strings when necessary.
...
This removes the zeroing when the string is subsequently overwritten by
a memcpy anyway.
2015-03-04 01:48:09 +01:00
Flaviu Tamas
7296c6d649
Add equality operator for RegexMatch and Regex
...
- Technically a breaking change, but I doubt anyone depends on a compile-time
error for long ;)
2015-03-03 18:48:35 -05:00
def
fa3620be9e
Only copy strings to their size, not capacity
...
Capacity may be much bigger, so we end up with strings that are much
larger than they have to be and have to copy more as well.
2015-03-03 22:23:35 +01:00