AsyncSocket delimeter

2016-07-31 Thread everlast
Is there a way to set the delimeter from rL to something else (perhaps without editting the asyncnet library itself).

Re: Dynamic Object Type Fields

2016-07-30 Thread everlast
@flyx I guess it's not NEEDED because I can just store it in a table but after using Python year after year it just seems like something natural. The "solution" based on posts above is: import tables template `.?`*[T](a: T, f: untyped): untyped = a[astToStr(f)]

Re: Dynamic Object Type Fields

2016-07-29 Thread everlast
So soemthing like Python's setattr() doesn't exist then?

Dynamic Object Type Fields

2016-07-29 Thread everlast
Is this possible in nim? An example of what I mean: type test* = object var t = test() var t.name = "kek" #This would fail to compile

Re: Exception not being caught?

2016-07-29 Thread everlast
@OderWat Thank you for that!

Re: Exception not being caught?

2016-07-29 Thread everlast
@OderWat There is no difference in the length. The data is there it's just NULL and for some reason that isn't being caught when I try to reference the index.

Re: Exception not being caught?

2016-07-29 Thread everlast
@OderWat SIGSEGV: Illegal storage access. (Attempt to read from nil?) Results in the same error. Already tried that actually.

Exception not being caught?

2016-07-28 Thread everlast
For some reason this is not catching the exception and crashing with a "SIGSEGV: Illegal storage access. (Attempt to read from nil?)" proc select_all(): Future[seq[Table[string, string]]] {.async.} = var dbC: DbColumns = @[] var data = newSeq[Table[string, string]]()

db_mysql return column name as well?

2016-07-28 Thread everlast
Instead of returning just the row/s is there a way to return column_name:column_value pairs?