Updated Common Criticisms (markdown)
This commit is contained in:
parent
815c7c12e7
commit
ce1174abdb
|
@ -6,7 +6,7 @@ Possibly. The problem here is that of what mental metaphor is being used. In man
|
|||
``` nimrod
|
||||
proc foo(input: var T) = ...
|
||||
proc foo(input: ref T) = ...
|
||||
let a: ref T = ...
|
||||
let a: ref T = ... # `let` says the value of the pointer is immutable
|
||||
foo(a) # valid, this is Java-style
|
||||
var b: T = ...
|
||||
foo(b) # also valid
|
||||
|
|
Loading…
Reference in New Issue