kubo39's blog

ただの雑記です。

2015-05-20から1日間の記事一覧

nimでsegv

Nim

2パターンで。 パターン1 コード1: import sequtils var x = cast[string](@[1, 2, 3, 4, 5]) 出力1: % $HOME/Nim/bin/nim -version Nim Compiler Version 0.11.2 (2015-05-20) [Linux: amd64] Copyright (c) 2006-2015 by Andreas Rumpf git hash: 45…

nimのcast[string]がバグってるぽい件

Nim

再現コード import unsigned, sequtils echo cast[string](newSeq[uint8](10).mapIt(string, $(it))) 出力結果がランダムに変わってるけど、この挙動はおかしいのではなかろうか。 ( ՞ਊ ՞) :~/dev/nim $ nim -version Nim Compiler Version 0.11.2 (2015-05-…