Explicit default constructor for structs

Jacob Carlborg doob at me.com
Fri Apr 11 13:36:11 PDT 2014


On 2014-04-11 18:05, monarch_dodra wrote:

> Why? The D version would just go from "object.Error Access Violation" to
> "AssertError null this".

Hmm, I was pretty sure it wouldn't assert.

> And in release, you'd still (highly probably) still get the Access
> Violation.

No, in release mode it's possible to call non-virtual methods on null 
references.

-- 
/Jacob Carlborg


More information about the Digitalmars-d mailing list