[Issue 9941] New: Allows to return class objects and pointers to the structures, which were created with "new".

d-bugmail at puremagic.com d-bugmail at puremagic.com
Tue Apr 16 13:36:10 PDT 2013


http://d.puremagic.com/issues/show_bug.cgi?id=9941

           Summary: Allows to return class objects and pointers to the
                    structures, which were created with "new".
           Product: D
           Version: D2
          Platform: All
        OS/Version: All
            Status: NEW
          Severity: enhancement
          Priority: P2
         Component: DMD
        AssignedTo: nobody at puremagic.com
        ReportedBy: wazar.leollone at yahoo.com


--- Comment #0 from Igor Stepanov <wazar.leollone at yahoo.com> 2013-04-16 13:36:09 PDT ---
Allows next code:

class Foo
{
  this(int a){f=a;}
  int f;
}

static foo = new Foo(42);

Foo constructor can be evaluated at compile-time and static object foo can be
placed in static memory.

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


More information about the Digitalmars-d-bugs mailing list