Re: Module logging: how to create the right Logger(s) in a library?

2018-02-12 Thread mikra
I personally would not recommend to log within a library (avoid external dependencies). This constraints the library consumer; for instance you don't know which logging libary the application uses; the environment (mobile, server), the logging-language and so on. If you do API design it's

Re: Is there a way to create a Java-style thread-local in Nim?

2018-02-12 Thread Araq
We had something like that and removed it because it is racy. You can call `registerThreadLocalInitialiser` after a thread has been created.

Re: Is there a way to create a Java-style thread-local in Nim?

2018-02-12 Thread Araq
Maybe attempt #1 when you make `getValue` a `.dirty` template with a `when not declared` check to prevent multiple declarations of the thread var. Seems a bad hack though.

Is there a way to create a Java-style thread-local in Nim?

2018-02-12 Thread monster
I've been wondering if something like Java's ThreadLocal (which I use a massively in (Java) server-side code), could be defined in Nim. I tried those two approaches, but neither is valid code. It seems to me it isn't possible. Attempt #1: type ThreadLocal*[T] = object

Re: Module logging: how to create the right Logger(s) in a library?

2018-02-12 Thread monster
I think it boils down to me being used to use "binary" libraries in Java. When something goes wrong in that case, you can't really tell what happens without logging (unless you can reproduce it in a debugger). OTOH, Nim's "libraries" are (AFAIK) mostly available in source form, so one can

Re: Inspecting Object Field Pragmas

2018-02-12 Thread StasB
Alright. I understand. Thank you for your help!

Re: Passing operator '>' as a template argument

2018-02-12 Thread cdome
Should be just fine. Also, you code can potentially benefit from a shortcut inside a proc: template d: auto = heap.data

Re: Inspecting Object Field Pragmas

2018-02-12 Thread cdome
Correct!!

Re: Can't send email via port 587 with TLS

2018-02-12 Thread rajydv23
To the great comment in the version the play list [http://pscodes.net](http://pscodes.net) to the how to get free psn codes any thing the play online game.

Re: Wrapping uint32 (and int32 and float32 and more) var parameters

2018-02-12 Thread rajydv23
That is a real game so far the [http://stmkeyscodes.net](http://stmkeyscodes.net) great comment in the page.

Re: Question regarding the setter method/proc

2018-02-12 Thread rajydv23
To the best thing the play online game is [https://texttwist.online](https://texttwist.online) so more the chance to the great.

Re: Nim history

2018-02-12 Thread rajydv23
To the generator the homepage the move star planet [http://mahjongdimensions.me](http://mahjongdimensions.me) game is so more the free mahjong dimensions online game.

Re: How can I maintain the original HTML structure/DOM?

2018-02-12 Thread rajydv23
It is so much the comment in the fast to learn this page to [https://passwordwindows10.com](https://passwordwindows10.com) the improve the remove password windows 10 site is new version the play list.