mirror of
https://github.com/vlang/v.git
synced 2023-08-10 21:13:21 +03:00
checker: check array and fields mutability
This commit is contained in:
@@ -7,11 +7,12 @@ import strings
|
||||
|
||||
pub struct array {
|
||||
pub:
|
||||
element_size int
|
||||
pub mut:
|
||||
data voidptr// Using a void pointer allows to implement arrays without generics and without generating
|
||||
// extra code for every type.
|
||||
len int
|
||||
cap int
|
||||
element_size int
|
||||
}
|
||||
|
||||
// Internal function, used by V (`nums := []int`)
|
||||
|
||||
Reference in New Issue
Block a user