1
0
mirror of https://github.com/vlang/v.git synced 2023-08-10 21:13:21 +03:00

unsafe keyword + make array.free() an unsafe method

This commit is contained in:
Alexander Medvednikov
2019-10-20 19:59:53 +03:00
parent f7c00b8180
commit 1b518c158b
6 changed files with 93 additions and 62 deletions

View File

@ -234,6 +234,7 @@ pub fn (a array) clone() array {
}
//pub fn (a []int) free() {
[unsafe_fn]
pub fn (a array) free() {
//if a.is_slice {
//return