Re: Advent of Code 2018 megathread

2018-12-08 Thread Julien
Day 9 https://adventofcode.com/2018/day/9 was so much fun to solve !

I also really enjoyed day 3 https://adventofcode.com/2018/day/3 and day 6 
https://adventofcode.com/2018/day/6

Do you guys have a favorite so far? 


Re: Introducing Reel Valley

2018-12-06 Thread Julien
I think it is according to the Facebook page.

image:: [https://i.imgur.com/vQpRAcS.png](https://i.imgur.com/vQpRAcS.png)


Re: Can't assign a new object to a reference

2018-12-05 Thread Julien
I think it's because you try to mutate the node parameter. Parameters are 
immutable by default see 
[https://nim-lang.org/docs/tut1.html#procedures-parameters](https://nim-lang.org/docs/tut1.html#procedures-parameters).

>From the doc:

If a mutable variable is needed inside the procedure, it has to be declared 
with var in the procedure body.

They have an example in the url above.

If you don't want to mutate you could use the result name instead. See 
[https://nim-lang.org/docs/tut1.html#procedures-result-variable](https://nim-lang.org/docs/tut1.html#procedures-result-variable).


Re: Advent of Code 2018 megathread

2018-12-03 Thread Julien
Hi, I am new in this forum and as a Nim user.

I'll post my solutions here: 
[https://github.com/JulienRobitaille/AoC2018](https://github.com/JulienRobitaille/AoC2018)

I use this year advent of code as an opportunity to learn Nim :)