D issues are now tracked on GitHub. This Bugzilla instance remains as a read-only archive.
Issue 3460 - Allow calllng of class c'tors through methods other than new
Summary: Allow calllng of class c'tors through methods other than new
Status: RESOLVED INVALID
Alias: None
Product: D
Classification: Unclassified
Component: dmd (show other issues)
Version: D2
Hardware: Other Windows
: P2 enhancement
Assignee: No Owner
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2009-10-31 13:30 UTC by David Simcha
Modified: 2015-06-09 01:26 UTC (History)
0 users

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this issue.
Description David Simcha 2009-10-31 13:30:16 UTC
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.
Comment 1 David Simcha 2009-10-31 13:38:16 UTC
Never mind, I just realized it's __ctor and it only works if the class has a constructor.