news.txt updates; fixes bootstrapping
This commit is contained in:
parent
8ab3074c80
commit
d631958124
2 changed files with 8 additions and 2 deletions
|
|
@ -3266,9 +3266,10 @@ template `..<`*(a, b: expr): expr =
|
|||
## '..' and '<' is required.
|
||||
a .. <b
|
||||
|
||||
proc xlen*(x: string): int {.magic: "XLenStr", noSideEffect.}
|
||||
proc xlen*[T](x: seq[T]): int {.magic: "XLenSeq", noSideEffect.}
|
||||
proc xlen*(x: string): int {.magic: "XLenStr", noSideEffect.} = discard
|
||||
proc xlen*[T](x: seq[T]): int {.magic: "XLenSeq", noSideEffect.} =
|
||||
## returns the length of a sequence or a string without testing for 'nil'.
|
||||
## This is an optimization that rarely makes sense.
|
||||
discard
|
||||
|
||||
{.pop.} #{.push warning[GcMem]: off.}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue