Unchecked arrays now have their own type (#9267)
This commit is contained in:
parent
0803b532f4
commit
0ead36dae6
15 changed files with 72 additions and 21 deletions
|
|
@ -253,7 +253,13 @@ type
|
|||
seq*{.magic: "Seq".}[T] ## Generic type to construct sequences.
|
||||
set*{.magic: "Set".}[T] ## Generic type to construct bit sets.
|
||||
|
||||
UncheckedArray* {.unchecked.}[T] = array[0, T]
|
||||
when defined(nimUncheckedArrayTyp):
|
||||
type
|
||||
UncheckedArray*{.magic: "UncheckedArray".}[T]
|
||||
## Array with no bounds checking
|
||||
else:
|
||||
type
|
||||
UncheckedArray*{.unchecked.}[T] = array[0,T]
|
||||
## Array with no bounds checking
|
||||
|
||||
when defined(nimHasOpt):
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue