On 2013-10-09 15:18:23 +0000, "deadalnix" <[email protected]> said:
On Wednesday, 9 October 2013 at 13:03:33 UTC, Michel Fortin wrote:
On 2013-10-09 04:07:53 +0000, "deadalnix" <[email protected]> said:
That being said, isolated is probably something we want to add in the future.
You'll hit a problem with immutable though. Immutable is implicitly
shared, and immutable strings are everywhere!
Collecting immutable do not require to stop the application.
All I'm pointing out is that as long as immutable is implicitly shared,
immutable memory has to be allocated and collected the same way as
shared memory "just in case" someone passes it to another thread. The
type system can't prevent you from sharing your immutable strings with
other threads.
--
Michel Fortin
[email protected]
http://michelf.ca