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: [email protected]
ReportedBy: [email protected]
--- Comment #0 from Igor Stepanov <[email protected]> 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: -------