ringabout
ringabout
I think this syntax is for commands, e.g. ```nim proc foo(x: int): int = result = x + 1 var x = [foo foo 12] echo x var y =...
!nim c ```nim var p1: proc() {.closure.} var p2: proc() {.closure.} var p3: proc() {.closure.} proc makeClosure(): proc(i: int) = var arr = @[0,0,0] echo "arr defined: " & $arr...
!nim c --gc:arc ```nim var p1: proc() {.closure.} var p2: proc() {.closure.} var p3: proc() {.closure.} proc makeClosure(): proc(i: int) = var arr = @[0,0,0] echo "arr defined: " &...
expansions: ```nim while true: block :stateLoop: case :envP.`:state` of 0: :envP.`:state` = 1 return 1 of 1: sinkMe(:envP.`:up`.v0) :envP.`:state` = -1 break :stateLoop else: return ``` ``` CFG: L0: 0...
related to https://github.com/nim-lang/Nim/issues/22173
progress: https://github.com/mratsim/constantine/pull/512
CI failures are already on the devel branch
I propose this solution in std or fusion: ```nim func toByteSeq*(str: string): seq[byte] {.inline.} = ## Converts a string to the corresponding byte sequence. @(str.toOpenArrayByte(0, str.high)) func toString*(bytes: openArray[byte]): string...
Yes, sometimes I need this. For examples, `nimcrypto` only provides `openArray[byte]` interface, I need to convert this to string. ```nim proc randomString*(size = DefaultEntropy): string {.inline.} = ## Generates a...
Notes that https://github.com/nim-lang/choosenim/issues/13 has been resolved