Preventing use after free

2018-02-23 Thread twetzel59
Hello all, I noticed while reading the docs that several stdlib types -- notably `File` and `DbConn` are declared as `ptr` types. As I understand, this makes them vulnerable to use after free errors. Would it make sense for the relevant `close` `proc` s to take the pointer as a `var`

Re: Nim's status discussion

2018-02-23 Thread echo
I really like NiGui. [https://github.com/trustable-code/NiGui](https://github.com/trustable-code/NiGui)

Re: Nim's status discussion

2018-02-23 Thread Libman
> Does standard library is stable for usage in the enterprise? No. The "enterprise" had reluctantly transitioned from their legacy systems only because COBOL programmers were dying of old age. IBM / SAP / Oracle / etc were pushing Java, and Microsoft was pushing BASIC and C# (especially in

Re: Nim's Easy Serialization Macro - new version available

2018-02-23 Thread xomachine
The new release is available! **NESM v0.4.0** * * * **Additions:** * Added the size option for the custom periodic structures deserialization. (allows to read the dynamic periodic structure length from other field instead of default behavior) * Added the sizeof options for the custom

Re: need an explanation of strings/add behavior

2018-02-23 Thread Libman
That unexplained trailing 's' character doesn't appear for me locally (v0.17.2), but only on [Nim Playground](https://play.nim-lang.org/) (which is also used by this forum's "Run" button). System [add](https://nim-lang.org/docs/system.html#add,string,string)... proc add*(x: var

Re: need an explanation of strings/add behavior

2018-02-23 Thread r3d9u11
Thanks for answer!

Re: need an explanation of strings/add behavior

2018-02-23 Thread def
Probably because you are manipulating the string itself while coyping from it. If this should be allowed, then the code should make a copy of the original size before manipulating the target in `add`. Sounds like a bug that could easily be fixed.

Re: How to call original procedure from overloaded?

2018-02-23 Thread r3d9u11
Thanks!