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


Andrej Mitrovic <andrej.mitrov...@gmail.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |andrej.mitrov...@gmail.com


--- Comment #1 from Andrej Mitrovic <andrej.mitrov...@gmail.com> 2010-09-11 
06:37:01 PDT ---
You can't make your own default constructor for structs, this is explained in
TDPL. A constructor with no arguments is created by default, with each field of
a struct initialized to it's type's .init property. You cannot override this.
See page 244 in TDPL.

Also, since when are structs allowed to be allocated on the heap? TDPL
explicitly states that structs have scoped lifetime.

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

Reply via email to