View previous topic :: View next topic |
Author |
Message |
mpt
Joined: 13 Sep 2008 Posts: 2 Location: Finland
|
Posted: Mon Mar 16, 2009 8:56 am Post subject: Constructor is required? |
|
|
About the assertion at minid/bind.d(1144): static assert "Cannot call default constructor for class Foo; please wrap a constructor explicitly".
Why does MiniD require a constructor for a class to be wrapped? I'm using a script that gets all objects as parameters or through a factory, so a ctor is not necessary. In fact I'd prefer to sandbox the script so that none of my d-objects can be created by MiniD. I suppose I can work around it with a ctor that just throws.
Oh and thank you Jarrett for the quick fixes. |
|
Back to top |
|
|
JarrettBillingsley
Joined: 20 Jun 2006 Posts: 457 Location: Pennsylvania!
|
Posted: Mon Mar 16, 2009 9:38 am Post subject: |
|
|
You know, that's a good point. I hadn't considered that use case. I'll see what I can do. |
|
Back to top |
|
|
|