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:
@ -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
|
||||
|
Reference in New Issue
Block a user