Invalid type: 'proc' in this context 'proc (ui: NimUI, btn: Button)' for proc

2018-12-14 Thread JD
This is a repost from github, but I'd be glad for some insight. Every time I try to compile my nim program I get the same error. Invalid type: 'proc' in this context 'proc (ui: NimUI, btn: Button)' for proc I'm trying to implement a simple ui in Nim with sdl2. Button is an reference object

Re: Nim vs D

2018-12-14 Thread moerm
Let me help you out. I'll emphasize the relevant word to make it easier for you. > I can let other opinions stand and have no need to "facepalm" or similar to > otherwise belittle or attack **anyone** here Maybe, just maybe one might take my opinion re. D as "attack" or belittling IFF I had it

Re: startProcess alternative with lossless output stream

2018-12-14 Thread trtt
That actually works! Maybe, we should mention this in the documentation of startProcess until we have a better implementation.

Re: Nim vs D

2018-12-14 Thread SolitudeSF

Re: Nim vs D

2018-12-14 Thread moerm
So? You have your opinion and I have mine - and as you saw (with my no further discussing with someone else) I _can_ let other opinions stand and have no need to "facepalm" or similar to otherwise belittle or attack anyone here. In fact I assume the differences in our views largely stem from

Re: Nim vs D

2018-12-14 Thread Libman
I was hoping for a more adult analysis of [Alexandrescu's introspection talks](https://www.youtube.com/results?search_query=Alexandrescu+Introspection) and Nim vs D... > FWIW I had a look at D multiple times and learned to fervently dislike it. My > personal summary is that D is but yet

Re: Add constants via detect.nim?

2018-12-14 Thread MarcL
Ok everything went smooth. I just have to create a script to update the constants automatically.

Re: startProcess alternative with lossless output stream

2018-12-14 Thread gemath
Didn't follow the discussion, but maybe this helps: writing to a child process input stream is buffered. When `p.inputStream.flush` is inserted after every call to `p.inputStream.writeLine` in a.nim, the code in the OP works.

Add constants via detect.nim?

2018-12-14 Thread MarcL
Hi, I am polishing my raw socket lib. But, I would like to add some platform constants via detect so that I get my modifications back automatically ( and others as well). But it breaks my installation once I move the linux_const.nim because of incorrect type(TSa_family) but should be cint. Si

Re: Returning cstring from a DLL

2018-12-14 Thread bobd
Ignore this! Basic error in cross-language DLLs - the second example is of course Undefined Behaviour.

Re: startProcess alternative with lossless output stream

2018-12-14 Thread trtt
That's good news @timothee! I was thinking about implementing a new startProcess through C but I don't have the time now.

Gdb pretty printers for nim

2018-12-14 Thread Arrrrrrrrr
I see you submitted an issue there [https://github.com/cs01/gdbgui/issues/210](https://github.com/cs01/gdbgui/issues/210) is this still a problem?

Re: Returning cstring from a DLL

2018-12-14 Thread bobd
Thanks - yes digging into the structure is my plan for today. Delphi, IMO, is still the best tool around for developing desktop apps, but it's not so good for number crunching. I'm investigating using Nim for that part. I thought I had the interop all sorted out until I came across this

Re: Advent of Code 2018 megathread

2018-12-14 Thread bonflintstone
A bit late to the party and really not proud of all of them, but here is my repo: [https://github.com/bonflintstone/AdventOfCode](https://github.com/bonflintstone/AdventOfCode) I guess my favorites were 8, 9 and 13. 13 was really nice to visualize and I actually created some more tracks later