FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

Constructor is required?

 
Post new topic   Reply to topic     Forum Index -> MiniD
View previous topic :: View next topic  
Author Message
mpt



Joined: 13 Sep 2008
Posts: 2
Location: Finland

PostPosted: Mon Mar 16, 2009 8:56 am    Post subject: Constructor is required? Reply with quote

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
View user's profile Send private message
JarrettBillingsley



Joined: 20 Jun 2006
Posts: 457
Location: Pennsylvania!

PostPosted: Mon Mar 16, 2009 9:38 am    Post subject: Reply with quote

You know, that's a good point. I hadn't considered that use case. I'll see what I can do.
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic     Forum Index -> MiniD All times are GMT - 6 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2005 phpBB Group