Re: Return subobject from proc

2019-12-31 Thread phillvancejr
Thanks @Araq!

Re: Return subobject from proc

2019-12-31 Thread phillvancejr
working example if anyone wants to know type A = object of RootObj B = ref object of A proc thing() : ref A = B() let x = thing() Run

Re: Return subobject from proc

2019-12-31 Thread phillvancejr
This doesn't seem to work either. Just as with the version I have in the original post this compiles but crashes at runtime

Return subobject from proc

2019-12-31 Thread phillvancejr
How can I do something like this? type

Re: Using a Case Statement inside a template

2019-12-30 Thread phillvancejr
@mashingan was right, it was the use of the ..< , thank you!

Using a Case Statement inside a template

2019-12-29 Thread phillvancejr
I'm messing around with templates and can't get passed this template/generic instantiation of 'test' from here. What is wrong with this code? let val = 10 template test(val: typed) = case val: of low(int)..<5: echo "under 5" else:

Re: Recommended GUI library?

2019-12-09 Thread phillvancejr
Hey @marks, you're right it should be added there. It is an old package and is just in maintenance mode so it definitely needs some updating. I'm not the original creator of the bindings but I plan on making a pull sometime in the near future to update it with my changes and instructions for

Re: Recommended GUI library?

2019-12-09 Thread phillvancejr
Hello, I personally use the wxWidgets bindings. There isn't a ton of documentation on the Nim bindings specifically, but between the examples and wxWidgets c++ documentation, it is easy enough to navigate. Check out he wxWidgets window creation example I just uploaded to Rosetta Code,