Hello world. Are constructors yet supported by nim ? How can I create one ?
@mratsim thank you for the libs. I'm going to check them out.
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.
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
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
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 ?