[Haskell-cafe] return with mutable object

Baojun Wang wangbj at gmail.com
Wed Jun 18 00:50:18 UTC 2014


Hi List,

Per my understanding, return x would make a new copy of the object. What if
the returned object is mutable? Will this make a new (mutable) object?

My concern is if I created a very large mutable object, does return mutable
make a full copy of the original mutable data, or just copy a reference
(pointer?)?

Thanks
baojun
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.haskell.org/pipermail/haskell-cafe/attachments/20140617/bd90ca16/attachment.html>


More information about the Haskell-Cafe mailing list