Tag Archives: pas-by-reference

Side Effects may include… being wrong!

Yesterday, I wrote a post about Side Effects. My post was based on observed behaviour, as opposed to the mechanics of the Dart VM. I am happy to report that my last post was wrong. Yes I was wrong, and … Continue reading

Posted in Dart | Tagged , | 1 Comment

Side Effects

Dart, like many other languages, uses pass-by-reference for complex objects, and pass-by-value for simple objects. This can occasionally be confusing or surprising to someone new to the language. It may not always be clear when your function will have side … Continue reading

Posted in Dart | Tagged , , | 1 Comment