mirror of
https://github.com/vlang/v.git
synced 2023-08-10 21:13:21 +03:00
docs: restore the important sentence about the mutable args that have to be marked on call
This commit is contained in:
parent
e5bbb23389
commit
ccc3271493
@ -2280,7 +2280,8 @@ Note that the embedded struct arguments are not necessarily stored in the order
|
|||||||
|
|
||||||
### Immutable function args by default
|
### Immutable function args by default
|
||||||
|
|
||||||
In V function arguments are immutable by default.
|
In V function arguments are immutable by default, and mutable args have to be
|
||||||
|
marked on call.
|
||||||
|
|
||||||
Since there are also no globals, that means that the return values of the functions,
|
Since there are also no globals, that means that the return values of the functions,
|
||||||
are a function of their arguments only, and their evaluation has no side effects
|
are a function of their arguments only, and their evaluation has no side effects
|
||||||
|
Loading…
Reference in New Issue
Block a user