www.digitalmars.com         C & C++   DMDScript  

digitalmars.D.bugs - [Issue 3460] New: Allow calllng of class c'tors through methods other than new

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

           Summary: Allow calllng of class c'tors through methods other
                    than new
           Product: D
           Version: 2.035
          Platform: Other
        OS/Version: Windows
            Status: NEW
          Severity: enhancement
          Priority: P2
         Component: DMD
        AssignedTo: nobody puremagic.com
        ReportedBy: dsimcha yahoo.com


--- Comment #0 from David Simcha <dsimcha yahoo.com> 2009-10-31 13:30:16 PDT ---
There used to be a way (described here) to allocate class instances using
custom allocation schemes, without modifying the code to the actual class. 
Apparently, calling f._ctor(args) doesn't work anymore.  Please start allowing
this again, as I really need it to create a method of allocating class
instances w/ the new precise heap scanning stuff I'm working on.

-- 
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
Oct 31 2009
parent d-bugmail puremagic.com writes:
http://d.puremagic.com/issues/show_bug.cgi?id=3460


David Simcha <dsimcha yahoo.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |RESOLVED
         Resolution|                            |INVALID


--- Comment #1 from David Simcha <dsimcha yahoo.com> 2009-10-31 13:38:16 PDT ---
Never mind, I just realized it's __ctor and it only works if the class has a
constructor.

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