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

Interface wrapping

 
Post new topic   Reply to topic     Forum Index -> PyD
View previous topic :: View next topic  
Author Message
KlausO



Joined: 16 Feb 2006
Posts: 27
Location: Germany

PostPosted: Thu Feb 22, 2007 4:37 pm    Post subject: Interface wrapping Reply with quote

Hi Kirk,

from the docs I have seen that with PyD it is possible to wrap D classes and structs to expose them to Python. Is something similar possible for interfaces?
If yes, does it work out of the box, or is some manual work to do ?
Thanks

KlausO
Back to top
View user's profile Send private message
KirkMcDonald



Joined: 22 Jun 2006
Posts: 23

PostPosted: Thu Feb 22, 2007 7:31 pm    Post subject: Reply with quote

This is moderately easy to do, and I had already added it to the roadmap for RC2 before seeing this thread. The inheritance docs have had a note at the bottom for a while, saying I wanted to do this. It requires that I add a new AbstractDef struct template, to be used as an argument to wrap_class, as well as some minor changes to wrap_class itself.
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic     Forum Index -> PyD 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