spir wrote:
What would be the consequences if D had no const, only immutable (that, IIUC, removes the latter non-guarantee)?
You'd have to write most every function twice, once to take immutable args and again for mutable ones.
spir wrote:
What would be the consequences if D had no const, only immutable (that, IIUC, removes the latter non-guarantee)?
You'd have to write most every function twice, once to take immutable args and again for mutable ones.