Re:

2018-03-31 Thread Libman
Random thought: IPFS

Re: SIGSEGV using lines(filename)

2018-03-31 Thread mashingan
like @dom mentioned this var envs, wavs, fms, macros: seq[tuple[name: string, values: string]] all variables aren't initialized, you might to initialize them with `newSeq[T]` like type Info = object name, value: string var envs, wavs, fms, m

Re: SIGSEGV using lines(filename)

2018-03-31 Thread dom96
"SIGSEGV (Attempt to read from nil?)" You are reading from nil. You haven't initialised `result`. Use `result = @[]` at the top of your proc.

Re: module name collision across nimble packages

2018-03-31 Thread dom96
Good questions. Most of them are answered by Nimble's readme, but the packages readme should also contain this info (PRs welcome). > Q1 :what happens if 2 nimble packages with same name are published to nimble? > eg: > [https://github.com/ivankoster/protobuf-nim](https://github.com/ivankoster/p

Re:

2018-03-31 Thread timothee
maybe we could do the same as done in dub (for D): eg [https://github.com/dlang/dub-registry/blob/master/source/dubregistry/mirror.d](https://github.com/dlang/dub-registry/blob/master/source/dubregistry/mirror.d) still decentrallized but allows for multiple mirrors; dub install foo will try diff

module name collision across nimble packages

2018-03-31 Thread timothee
Q1 :what happens if 2 nimble packages with same name are published to nimble? eg: [https://github.com/ivankoster/protobuf-nim](https://github.com/ivankoster/protobuf-nim) [https://github.com/PMunch/protobuf-nim](https://github.com/PMunch/protobuf-nim) I don't see any package name uniqueness co

Re: nim vs c++ Why does nim show special chars in txt?

2018-03-31 Thread ggibson
Thanks!

Re: nim vs c++ Why does nim show special chars in txt?

2018-03-31 Thread darek
It is BOM (byte order mark) of UTF-8 file. [https://en.wikipedia.org/wiki/Byte_order_mark#UTF-8](https://en.wikipedia.org/wiki/Byte_order_mark#UTF-8)

nim vs c++ Why does nim show special chars in txt?

2018-03-31 Thread ggibson
I'm reading in a text file from Project Gutenberg (War and Peace) and the first line contains the following when I print it out using nim: "The Project Gutenberg EBook" Whereas in C++ doing the same thing I see no such special characters (the first 3). Nor in Notepad++ with all whitespace mad

Re: Custom pragma on type

2018-03-31 Thread doofenstein
Thanks for the reply, I created an issue on Github: [https://github.com/nim-lang/Nim/issues/7451](https://github.com/nim-lang/Nim/issues/7451)