www.digitalmars.com         C & C++   DMDScript  

digitalmars.D.bugs - [Issue 10107] New: Allow to store "newed" class and struct instances in TLS

reply d-bugmail puremagic.com writes:
http://d.puremagic.com/issues/show_bug.cgi?id=10107

           Summary: Allow to store "newed" class and struct instances in
                    TLS
           Product: D
           Version: unspecified
          Platform: All
        OS/Version: All
            Status: NEW
          Severity: enhancement
          Priority: P2
         Component: DMD
        AssignedTo: nobody puremagic.com
        ReportedBy: code dawg.eu



class Foo
{
}

Foo foo = new Foo();

----

This is a followup of bug 9941.

NB:

https://github.com/D-Programming-Language/dmd/pull/1724#issuecomment-15456975

-- 
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
May 17 2013
parent d-bugmail puremagic.com writes:
http://d.puremagic.com/issues/show_bug.cgi?id=10107


Igor Stepanov <wazar.leollone yahoo.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |wazar.leollone yahoo.com



16:34:34 PDT ---
Same http://d.puremagic.com/issues/show_bug.cgi?id=10108 I think.
This is conceptual question: Can reference types be thread local?
If we'll find the way: we can do class literals, array literals and pointers
thread local.
By the way:

int* global_ptr = [1,2,3].ptr; //same trouble

I think, we must reject all mutable non-shared reference literals. And move to
reject all non-mutable literals

-- 
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
May 17 2013