mirror of
https://github.com/vlang/v.git
synced 2025-09-14 06:52:36 +03:00
compiler: v -autofree can now compile itself
This commit is contained in:
parent
2b0f2be18b
commit
f638caef39
9 changed files with 106 additions and 63 deletions
|
@ -98,11 +98,17 @@ pub fn (a array) reverse() array {
|
|||
return a
|
||||
}
|
||||
|
||||
// array.clone_static returns an independent copy of a given array
|
||||
// It should be used only in -autofree generated code.
|
||||
fn (a array) clone_static() array {
|
||||
return a.clone()
|
||||
}
|
||||
|
||||
pub fn (a array) clone() array {
|
||||
return a
|
||||
}
|
||||
|
||||
pub fn (a array) free() {
|
||||
pub fn (a &array) free() {
|
||||
}
|
||||
|
||||
// "[ 'a', 'b', 'c' ]"
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue