[Issue 4609] clear() does not call base constructor if a class does not implement a default constructor

d-bugmail at puremagic.com d-bugmail at puremagic.com
Thu Aug 9 02:22:48 PDT 2012


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


Denis Shelomovskij <verylonglogin.reg at gmail.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |RESOLVED
                 CC|                            |verylonglogin.reg at gmail.com
         Resolution|                            |INVALID


--- Comment #1 from Denis Shelomovskij <verylonglogin.reg at gmail.com> 2012-08-09 13:22:39 MSD ---
`destroy` (new name of `clear`) shouldn't call constructors at all. It just
destroys current object without creatuing a new valid one. Uncommenting
constructor in derived class doesn't (and shouldn't) change anything. If it
was, that was a bug (disappeared now) in `clear`.

-- 
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