ringabout
ringabout
Duplicates of https://github.com/nim-lang/Nim/issues/15637
> Nim Programming: The Next Generation Programming Language For Software Development > Nim Programming for Data Science: Harnessing the Power of Nim for Data Analysis These are GPT-generated low-quality books....
!nim c ```nim type InternalFutureBase* = object of RootObj FutureBase* = ref object of InternalFutureBase Future[T] = ref object of FutureBase internalValue*: T # Comment to make it work B[T,...
You can also use https://nimpkgs.dayl.in https://github.com/nimpkgs
> /Users/alex/tmp/Nim/compiler/semmagic.nim(213) semTypeTraits /Users/alex/tmp/Nim/compiler/semmagic.nim(193) evalTypeTrait It seems useful.
```nim var :env try: :env = [type node]() debugEcho ["1"] `=sink`(:env.v0, NoCopy(v: 3)) debugEcho ["2"] caller((:anonymous, :env)) debugEcho ["4"] test2(:env.v0) finally: `=destroy`(:env) ``` In `=sink(:env.v0, NoCopy(v: 3))`, it needs to...
Workaround: ```nim import std/sugar iterator v(): int = when nimvm: yield 0 else: yield 0 for _ in v(): for c in v(): capture c: (; let _: proc() =...
related to https://github.com/nim-lang/Nim/issues/15353 #12375
Workaround: ```nim proc fromHex[N: static int](A: type array[N, int]) = discard proc fromHex (T: typedesc[array[1, int]]) = discard fromHex(array[1, int]) ```
!nim c ```nim proc foo[T: int](x: T) = echo "int" proc foo[T: uint](x: T) = echo "uint" foo(0) # fails ```