language cleanup: the .unchecked pragma is dead
This commit is contained in:
parent
cc5b8c6ad2
commit
e71410d74e
8 changed files with 20 additions and 26 deletions
|
|
@ -400,7 +400,7 @@ block troofregression:
|
|||
|
||||
block tunchecked:
|
||||
{.boundchecks: on.}
|
||||
type Unchecked {.unchecked.} = array[0, char]
|
||||
type Unchecked = UncheckedArray[char]
|
||||
|
||||
var x = cast[ptr Unchecked](alloc(100))
|
||||
x[5] = 'x'
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue