Re: How to embed a header file into a .nim file

2018-02-08 Thread mratsim
Resurrecting this thread as I stumbled upon the exact same issue. The library from def_pri_pub (stb_image) and the library I'm wrapping (ttmath) are header-only so we can't link to a library. I've noticed that `{.importc: "someProc", header: "path/to/header".}` is either absolute or relative to

Re: Multi language support in webapp

2018-02-08 Thread ThomasTJdev
Thank you for the suggestion alexsad. But when using constants, I can't figure out how to access them with a dynamic reference. With my current _tables_ solution, I can access the item based on the host and language by concentrating the users elements: # langGet[identifier & "_"

Re: Is there any Textadept user here ?

2018-02-08 Thread DTxplorer
@Jipok I found a decent black theme, [here](https://github.com/rgieseke/textadept-themes) but yours is nice too.

Expose objects to nimscript?

2018-02-08 Thread rku
Is it possible to expose objects to nimscript? Does any example exist?

Re: Multi language support in webapp

2018-02-08 Thread alexsad
After rework this exmaple [https://nim-lang.org/docs/tut2.html#building-your-first-macro-generating-source-code](https://nim-lang.org/docs/tut2.html#building-your-first-macro-generating-source-code) import macros, strutils var cfgFile = """title_ENh = Hubanize title_DKh

Re: [RFC] List comprehension replacement and syntax

2018-02-08 Thread cdome
@bahm: could you please add links to IRC logs for discussions already happened?

Re: [RFC] List comprehension replacement and syntax

2018-02-08 Thread cdome
I see a post for the first time, so it is likely has been blocked. Couple of thoughts in loud: In Nim expressions have already a proper type, no need wrap then into `let|var` assignments. `for x in [1, 2, 3, 4]: if x mod 2 == 0: x else: x + 1` should be a already valid. I think it makes sense

Re: [RFC] List comprehension replacement and syntax

2018-02-08 Thread mratsim
I'm surprised no one replied to your thread yet. The goal is to have "for" be a expression so it could sit on the right-hand side of an assignment. I'm not sure how it will be in practice for the: initialization - for loop - return

Re: Nim Dogfooding

2018-02-08 Thread Araq
> Dogfood refers to developers using their own product being actively developed > so that they will be annoyed enough by its rough edges to fix them. Yeah, and that's exactly what happened. We effectively got rid of all the spam, for example. > Inspect Element to get a link? Seriously? There's

Re: Nim Dogfooding

2018-02-08 Thread jibal
Dogfood refers to developers using their own product being actively developed so that they will be annoyed enough by its rough edges to fix them. There's no active development of this forum software and people are bending over backwards to rationalize its shortcomings. (Inspect Element to get a