diff options
author | Vindaar <basti90@gmail.com> | 2018-10-13 08:47:58 +0200 |
---|---|---|
committer | Andreas Rumpf <rumpf_a@web.de> | 2018-10-13 08:47:58 +0200 |
commit | 9cdd9be5a529675112b4c0e85a66061eaf0f53b7 (patch) | |
tree | 7f850bc8f8c14cbc71d4b7d540188da6952f60da /lib/pure | |
parent | c495e97ec46ab46df56087457c82d80178f7e769 (diff) | |
download | Nim-9cdd9be5a529675112b4c0e85a66061eaf0f53b7.tar.gz |
fixes #8916 by fixing typeinfo and marshal. (#9341)
* fixes #8916 by removing `tyString`, `tySeq`, mod. marshal, typeinfo Need to check in `typeinfo` for nil of the underlying pointer. In marshal don't have to check for nil of seq anymore. * remove reference to string, sequence in `isNil` doc string
Diffstat (limited to 'lib/pure')
-rw-r--r-- | lib/pure/marshal.nim | 12 |
1 files changed, 5 insertions, 7 deletions
diff --git a/lib/pure/marshal.nim b/lib/pure/marshal.nim index b0bcfe535..171b71493 100644 --- a/lib/pure/marshal.nim +++ b/lib/pure/marshal.nim @@ -54,13 +54,11 @@ proc storeAny(s: Stream, a: Any, stored: var IntSet) = else: s.write($int(ch)) of akArray, akSequence: - if a.kind == akSequence and isNil(a): s.write("null") - else: - s.write("[") - for i in 0 .. a.len-1: - if i > 0: s.write(", ") - storeAny(s, a[i], stored) - s.write("]") + s.write("[") + for i in 0 .. a.len-1: + if i > 0: s.write(", ") + storeAny(s, a[i], stored) + s.write("]") of akObject, akTuple: s.write("{") var i = 0 |