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...
### Description While #23951 fixes casting negative enum values for ordinal types, it is still broken for "holey" enums: ```nim type Foo = enum A B = -1 proc foo...
### Description ```nim type A = object field: int proc works(a: A): lent int = a.field proc x(a: A): lent int = case true of true: a.field of false: a.field...
https://nim-lang.org/docs/random.html#initRand%2Cint64 https://nim-lang.org/docs/random.html#initRand%2Cint64_2 the second one can be deleted , it's identical to the first . this was already reported last year in https://github.com/nim-lang/Nim/issues/23051 and closed as completed , but the...
on https://nim-lang.org/docs/sha1.html the 2 links are dead : `sha2 module` -> https://nim-lang.org/docs/sha2.html `sha3 module` -> https://nim-lang.org/docs/sha3.html this was already reported last year in https://github.com/nim-lang/Nim/issues/23076 and closed as completed , but...
### Description This code produces SIGSEGV at runtime: ```nim type Date = object of RootObj # no bug if not `of RootObj` Common = object of RootObj name: string date:...
Compiler complains for add that has sideeffects (mutates parameters that are not declared var).
fix #22119 fix #21093 No idea why the addresses for base fields are different Actual segfault happens at https://github.com/nim-lang/Nim/blob/7d9fe106ecd70bf99b9f3224430debfe10060ce1/compiler/sempass2.nim#L1090 when it tries to access typ.kind where typ is nil
### Description ```Nim type Uid* = cuint Gid* = cuint proc usrToUid*(usr: string): Uid = 999.Uid proc usrToUid*(usrs: seq[string]): seq[Uid] = for usr in usrs: result.add usrToUid(usr) proc grpToGid*(grp: string):...
… type names causing invalid codegen fixes #23923