D has become unbearable and it needs to stop

Jonathan M Davis newsgroup.d at jmdavisprog.com
Fri Jun 16 02:45:43 UTC 2023


On Thursday, June 15, 2023 8:05:21 PM MDT Walter Bright via Digitalmars-d 
wrote:
> On 6/14/2023 7:44 PM, Chris Katko wrote:
> > Tell any other object about yourself in the constructor? segfault. Because
> > your object isn't constructed till _after_ the constructor runs. There's
> > a gotcha.
> All objects are default constructed before the constructor is called.

Or to be more precise, they're default-initialized before any constructors
are called.

- Jonathan M Davis





More information about the Digitalmars-d mailing list