The "no gc" crowd
Michel Fortin
michel.fortin at michelf.ca
Wed Oct 9 08:50:18 PDT 2013
On 2013-10-09 15:18:23 +0000, "deadalnix" <deadalnix at gmail.com> said:
> On Wednesday, 9 October 2013 at 13:03:33 UTC, Michel Fortin wrote:
>> On 2013-10-09 04:07:53 +0000, "deadalnix" <deadalnix at gmail.com> 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
michel.fortin at michelf.ca
http://michelf.ca
More information about the Digitalmars-d
mailing list