Are constructors supported ?

2020-07-27 Thread arch
Hello world. Are constructors yet supported by nim ? How can I create one ?

raw binary data

2020-07-23 Thread arch
@mratsim thank you for the libs. I'm going to check them out.

raw binary data

2020-07-23 Thread arch
Thank you @cblake. But it seems that openArrays can be used only as params. And sequences don't support bitwise operators like this: seq1 or seq2.

raw binary data

2020-07-22 Thread arch
I imagine something like this: #let suppose that, there is a sequence type named "arr", that is as low level as c's array type, but with a flexible lengh type Ops = enum [and](https://forum.nim-lang.org/postActivity.xml#and), [or](https://forum.nim-lang.org/postActivity.xml#or), [xor

raw binary data

2020-07-22 Thread arch
treeform i lve dealing with binary data. Thank you for sharing your personal libs with me. This is the detailed version of what I'm trying to do: I want to create a generic proc that that: * takes two variables of any type, * store the raw value of each variable in a byte array(size unkn

raw binary data

2020-07-22 Thread arch
Hello world. I would like to know how to store the raw binary value of any variable in some primitive data structure. And do binary operations on it(and, or, shift, etc). Which data structure is suitable for those operations, and how can I do them ?