DIP60: @nogc attribute

Steven Schveighoffer via Digitalmars-d digitalmars-d at puremagic.com
Tue Apr 22 06:39:54 PDT 2014


On Tue, 22 Apr 2014 09:29:28 -0400, Ola Fosheim Grøstad  
<ola.fosheim.grostad+dlang at gmail.com> wrote:

> On Tuesday, 22 April 2014 at 13:11:55 UTC, Steven Schveighoffer wrote:
>> Single threaded ARC can go a long way in D.
>
> Not without changing language semantics/mechanisms?
>
>> We statically know  whether data is shared or not.
>
> I don't understand how you can know this when you allow foreign function  
> invocation.

Can you explain this?

> Even thread local globals can leak into another thread by mistake,  
> unnoticed? Meaning random crashes that are hard to debug?

By mistake? How?

-Steve


More information about the Digitalmars-d mailing list