Nim
Nim copied to clipboard
Nim is a statically typed compiled systems programming language. It combines successful concepts from mature languages like Python, Ada and Modula. Its design focuses on efficiency, expressiveness, an...
fixes #20240 When resolving a symchoice based on type matches, `paramTypesMatch` only considers the symbols already in the symchoice. However for `nkOpenSymChoice`, newly introduced overloads must also be considered. To...
### Description The following code will trigger the issue. ``` nim iterator iterSome(): int = proc inner1() = let something = 6 proc inner2() = let othersomething = something inner2()...
### Description UPDATED: The following code produces a SIGSEGV: ```nim try: proc myFunc() = iterator myFuncIter(): int {.closure.} = if false: try: yield 5 except: discard var nameIterVar = myFuncIter...
closes [#75](https://github.com/nim-lang/threading/issues/75) ref https://github.com/nim-lang/threading/pull/79 Or only when `=sink` is disabled for `byRef`
I am trying the new recursive closure iterators. A simple example works just fine. But a larger one fails with **internal error: not part of closure object type** Unfortunately trying...
An iterator can't be declared in a template. ### Example ```nim type Foo = object template items*(f: Foo): int = let iter = iterator (g: Foo): int = for i...
### Example ```nim type Dummie = object iterator `[]`(d: Dummie, a, b: int): int = discard let d = Dummie() for s in d[0, 1]: discard # error here ```...
a declaration is ignored if at block-scope (block or inside proc) instead of module scope, depending on context. ### Example ```nim # main.nim import t10408c when defined(case_block): block: proc `$`(a:...
A module for collecting compile-time information from pkg-config. I've been using pkg-config with `passC` for years on Linux and it's worked well. Using `$PKG_CONFIG` with a fallback to `pkg-config` is...