we'll use v lang's way to define fields:
since every field is immutable in default, to make it mutable, must add keyword mut after optional access modifier.
e.g.
class Data {
mut {
// ... public mutable fields here
}
priv mut {
// ... private mutable fields here
}
}
we'll use v lang's way to define fields: since every field is immutable in default, to make it mutable, must add keyword
mut
after optional access modifier. e.g.Relates to #2.