Re: Sequence is unchangeable when passed to a spawned proc

2016-12-21 Thread lucian
spawn seems to dislike var parameters. perhaps related to see 
[http://forum.nim-lang.org/t/2457#15252](http://forum.nim-lang.org///forum.nim-lang.org/t/2457#15252)
 ?


Re: GTK 3.20 Nim wrapper

2016-12-21 Thread Krux02
@vlad1999d

Yes learning the second programming language is much easier that the first one. 
I learned nim very well with the online material, and with the great help of 
the community here. You guys are really great. Am now at language twenty 
something, and the process to learn a new language has almost became a routine. 
But learning the details always takes a real project to understand them, and 
even then you are most of the time just programming in a subset of the 
programming language that you feel comfortable in, and other people solve the 
same problem very differently.


Re: GTK 3.20 Nim wrapper

2016-12-21 Thread vlad1777d
@dom96, ok, this is not very problem for me. I heard that learning second 
language (I know Python) is much easier than first one. So if there will be 
possibilitywish to receive the book - I'll do that, if no - no. I'm sure in 
myself =)

@Stefan_Salewski, I started to make RSVG wrapper in the image and likeness of 
youth wrappers =) But manually, because I don't know Ruby and principles of 
it's building: 
[https://pp.vk.me/c638428/v638428447/16141/JwP6810n33E.jpg](https://pp.vk.me/c638428/v638428447/16141/JwP6810n33E.jpg)
 (I wondered, it had compiled =) I'll try to make cells with it now) I'll only 
add there needed one information. But if you'll have time - you could make full 
version, RSVG is bound to GTK, so it would be good addition to your wrappers 
collection.


Re: GTK 3.20 Nim wrapper

2016-12-21 Thread dom96
> @dom96, but maybe there is a way for me to pay you directly and receive a 
> digital version of book ? Or this is illegal because of your contract with 
> Manning ?

Indeed. Afraid I can't do that.


Re: Question about using the "new" built in

2016-12-21 Thread LeuGim
[http://nim-lang.org/docs/manual.html#types-object-construction](http://forum.nim-lang.org///nim-lang.org/docs/manual.html#types-object-construction)

"For a `ref object` type `system.new` is invoked implicitly."


Re: GTK 3.20 Nim wrapper

2016-12-21 Thread vlad1777d
Oh, I had missed a discussion about a book.

@dom96, but maybe there is a way for me to pay you directly and receive a 
digital version of book ? Or this is illegal because of your contract with 
Manning ? 


Re: GTK 3.20 Nim wrapper

2016-12-21 Thread vlad1777d
I'll ask about book than =)

First success: 
[https://pp.vk.me/c638428/v638428447/15f63/8Bgg0dH70NQ.jpg](https://pp.vk.me/c638428/v638428447/15f63/8Bgg0dH70NQ.jpg)
 Thanks for your wrapper and explainings =)


Question about using the

2016-12-21 Thread dmux
According to Part 1 of the Nim Tutorial,

> Traced references are declared with the ref keyword, untraced references are 
> declared with the ptr keyword.

and

> To allocate a new traced object, the built-in procedure new has to be used.

What happens if you do not use the **new** proc for a ref type? For example, I 
have the following code which compiles and runs fine:


type
  Node = ref object
name: string
left: Node
right: Node

proc newNode(name:string, left:Node = nil, right:Node=nil): Node =
  Node(name:name, left: left, right:right)

let rootNode = newNode("Grandpa")
let childNode1 = newNode("Uncle")
let childNode2 = newNode("Mother")
let grandchild1 = newNode("Sister")
let grandchild2 = newNode("Nimrod")

rootNode.left = childNode1
rootNode.right = childNode2
childNode2.left = grandchild1
childNode2.right = grandchild2


Since I defined my type using **ref**, but do not allocate a new traced object, 
is the object in this case untraced?


Re: GUI programming

2016-12-21 Thread Mennohexo
menno