握猫猫
握猫猫
how about [^N]T
I'm having the same issue. [https://play.nim-lang.org/#pasty=wUGGuJiKqNEZ](https://play.nim-lang.org/#pasty=wUGGuJiKqNEZ) ```nim type Style* = ref object type WidthStyleProp* = distinct int proc applyStyleProp*(self: WidthStyleProp, style: Style) = echo 111 type BaseStyleProp* = ref BaseStylePropObj...
I had the same issue when I executed the `cargo install tauri-cli` command, x86_64-pc-windows-gnu
!nim c ```nim type Obj[T] = object a: string proc `=destroy`[T](self: var Obj[T]) = assert $typeof(T) == self.a block: let intObj = Obj[int](a: "int") block: let floatObj = Obj[float](a: "float")...
It's a good idea to always generate 1, it doesn't introduce other exception codes, and also solves #22553
> Just letting SEQ_DECL_SIZE 1 cannot solve https://github.com/nim-lang/Nim/issues/22553 as offsetof works in compilation-time I guess so, not sure Set `SEQ_DECL_SIZE` to 1 and delete the dummy field, so that the...
https://github.com/nim-lang/Nim/blob/db5973361f3387bf3d559f101e44196df246d7d7/lib/system/seqs_v2.nim#L28-L31 `seq` is a fat pointer containing ptr and len . Similar to the std::vector type in C++. You should not take its address or use `sizeof` on it. The...
This is a solution provided by discord user fabricio, which I found very interesting. ```nim asyncDef doStuff() -> int: echo 1 echo 2 ``` Looks a lot like Python code.